diff --git a/js/widget.js b/js/widget.js
index 8b5877a..742ef87 100644
--- a/js/widget.js
+++ b/js/widget.js
@@ -11,6 +11,7 @@
     attach: function () {
       var n, i,
           list_element = '';
+      var actionBind = this.getActionBind();
 
       // Prevent errors
       if (typeof drupalSettings.CCKSelectOther !== 'object')
@@ -21,7 +22,7 @@
       for (n in drupalSettings.CCKSelectOther) {
         for (i in drupalSettings.CCKSelectOther[n]) {
           list_element = $('.' + drupalSettings.CCKSelectOther[n][i] + ' select');
-          $(list_element).bind('click', {element: list_element}, this.toggle).trigger('click');
+          $(list_element).bind(actionBind, {element: list_element}, this.toggle).trigger(actionBind);
         }
       }
     },
@@ -38,6 +39,19 @@
       });
 
       $(input_element).css('display', selected_other);
+    },
+    /**
+     * Provides a backwards-compatible way of supporting Drupal 7 core jQuery,
+     * and contemporary versions of jQuery without browser detection support.
+     *
+     * @returns {string}
+     */
+    getActionBind: function() {
+      var action = 'change';
+      if (undefined !== $.browser && $.browser.msie === true) {
+        action = 'click';
+      }
+      return action;
     }
   };
 })(jQuery, Drupal, drupalSettings);
diff --git a/tests/src/Nightwatch/Tests/selectOtherTest.js b/tests/src/Nightwatch/Tests/selectOtherTest.js
new file mode 100644
index 0000000..53708d5
--- /dev/null
+++ b/tests/src/Nightwatch/Tests/selectOtherTest.js
@@ -0,0 +1,32 @@
+module.exports = {
+  '@tags': ['cck_select_other'],
+  before(browser) {
+    const setupFile = `${__dirname}/../../TestSite/SelectOtherInstallTestScript.php`;
+    browser
+      .drupalInstall({ setupFile })
+      .drupalCreateUser({
+        name: 'sam',
+        password: 'sam',
+        permissions: [
+          'access content',
+          'bypass node access',
+          'create page content',
+          'edit any page content',
+        ],
+      });
+  },
+  after(browser) {
+    browser.drupalUninstall();
+  },
+  'Make select other text input hidden or visible': (browser) => {
+    browser
+      .drupalLogin({ name: 'sam', password: 'sam' })
+      .drupalRelativeURL('/node/add')
+      .screenshot()
+      .assert.hidden('.form-select-other-text-input')
+      .click('select[name="field_random_choice[0][select_other_list]"] option[value="other"]')
+      .waitForElementVisible('input[name="field_random_choice[0][select_other_text_input]"]', 1000)
+      .assert.visible('input[name="field_random_choice[0][select_other_text_input]"]')
+      .drupalLogAndEnd({ onlyOnError: false });
+  },
+};
diff --git a/tests/src/TestSite/SelectOtherInstallTestScript.php b/tests/src/TestSite/SelectOtherInstallTestScript.php
new file mode 100644
index 0000000..0dfb18b
--- /dev/null
+++ b/tests/src/TestSite/SelectOtherInstallTestScript.php
@@ -0,0 +1,252 @@
+<?php
+
+namespace Drupal\Tests\cck_select_other\TestSite;
+
+use Drupal\Component\Utility\NestedArray;
+use Drupal\Component\Utility\Random;
+use Drupal\Core\Entity\Entity\EntityFormDisplay;
+use Drupal\Core\Entity\Entity\EntityViewDisplay;
+use Drupal\TestSite\TestSetupInterface;
+use Drupal\field\Entity\FieldConfig;
+use Drupal\field\Entity\FieldStorageConfig;
+use Drupal\node\Entity\NodeType;
+
+/**
+ * Setup file used for cck_select_other Nightwatch tests.
+ */
+class SelectOtherInstallTestScript implements TestSetupInterface {
+
+  /**
+   * Random generator.
+   *
+   * @var \Drupal\Component\Utility\Random
+   */
+  protected $randomGenerator;
+
+  /**
+   * {@inheritdoc}
+   */
+  protected $modules = [
+    'node',
+    'field',
+    'field_ui',
+    'options',
+    'text',
+    'cck_select_other',
+  ];
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setup() {
+    \Drupal::service('module_installer')->install($this->modules);
+
+    $typeId = $this->createContentType(['type' => 'page', 'name' => 'Page']);
+
+    $options = $this->createOptions();
+    list($default_value, $label) = $this->getRandomOption($options);
+    $storage_values = [
+      'field_name' => 'field_random_choice',
+      'settings' => ['allowed_values' => $options],
+      'cardinality' => 1,
+    ];
+    $config_values = [
+      'field_name' => 'field_random_choice',
+      'label' => 'Random choice',
+      'required' => 0,
+      'default_value' => [
+        ['value' => $default_value],
+      ],
+    ];
+    $this->createSelectOtherListField('node', $typeId, 'list_string', $storage_values, $config_values);
+
+    // Flush all the things.
+    drupal_flush_all_caches();
+  }
+
+  /**
+   * Install configuration for modules.
+   *
+   * @param array $values
+   *   Optional values to set on the content type.
+   *
+   * @return string
+   *   The node type identifier.
+   *
+   * @throws \Drupal\Core\Entity\EntityStorageException
+   */
+  protected function createContentType(array $values = []) {
+    if (!isset($values['type'])) {
+      $id = $this->randomMachineName();
+    }
+    else {
+      $id = $values['type'];
+    }
+
+    $values += [
+      'type' => $id,
+      'name' => $id,
+    ];
+
+    $type = NodeType::create($values);
+    $type->save();
+
+    // Create Entity and View displays.
+    $formDisplay = EntityFormDisplay::create([
+      'id' => 'node.' . $id . '.default',
+      'targetEntityType' => 'node',
+      'bundle' => $id,
+      'mode' => 'default',
+      'content' => [],
+      'hidden' => [],
+    ]);
+    $formDisplay->save();
+
+    $viewDisplay = EntityViewDisplay::create([
+      'id' => 'node.' . $id . '.default',
+      'targetEntityType' => 'node',
+      'bundle' => $id,
+      'mode' => 'default',
+      'content' => [],
+      'hidden' => [],
+    ]);
+    $viewDisplay->save();
+
+    return $id;
+  }
+
+  /**
+   * Creates a select other field on the content type.
+   *
+   * @param string $entity_type
+   *   The entity type id.
+   * @param string $bundle
+   *   The bundle id.
+   * @param string $type
+   *   The field type plugin ID.
+   * @param array $fieldInfo
+   *   The field storage configuration.
+   * @param array $instanceInfo
+   *   The field configuration.
+   *
+   * @return \Drupal\Core\Entity\EntityInterface|\Drupal\field\Entity\FieldStorageConfig
+   *   The field config instance.
+   *
+   * @throws \Drupal\Core\Entity\EntityStorageException
+   */
+  protected function createSelectOtherListField($entity_type = 'node', $bundle = 'page', $type = 'list_string', array $fieldInfo = [], array $instanceInfo = []) {
+    $random = $this->getRandomGenerator();
+
+    if (!isset($fieldInfo['field_name'])) {
+      $fieldInfo['field_name'] = strtolower($random->name(8, TRUE));
+    }
+
+    // Create field storage instance.
+    $storage_values = NestedArray::mergeDeep($fieldInfo, [
+      'entity_type' => $entity_type,
+      'type' => $type,
+    ]);
+
+    $fieldStorage = FieldStorageConfig::create($storage_values);
+    $fieldStorage->save();
+
+    // Create field instance.
+    if (!isset($instanceInfo['label'])) {
+      $instanceInfo['label'] = $random->string(15);
+    }
+    $field_values = NestedArray::mergeDeep($instanceInfo, [
+      'field_name' => $fieldStorage->getName(),
+      'entity_type' => $entity_type,
+      'bundle' => $bundle,
+    ]);
+    $field = FieldConfig::create($field_values);
+    $field->save();
+
+    // Create form and display entities for select other field.
+    $display_id = $entity_type . '.' . $bundle . '.default';
+    $formDisplay = EntityFormDisplay::load($display_id);
+    $formDisplay->setComponent($fieldStorage->getName(), [
+      'type' => 'cck_select_other',
+    ]);
+    $formDisplay->save();
+
+    $viewDisplay = EntityViewDisplay::load($display_id);
+    $viewDisplay->setComponent($fieldStorage->getName(), [
+      'type' => 'cck_select_other',
+    ]);
+    $viewDisplay->save();
+
+    return $fieldStorage;
+  }
+
+  /**
+   * Generates a unique random string containing letters and numbers.
+   *
+   * @param int $length
+   *   Length of random string to generate.
+   *
+   * @return string
+   *   Randomly generated unique string.
+   *
+   * @see \Drupal\Component\Utility\Random::name()
+   */
+  public function randomMachineName($length = 8) {
+    return $this->getRandomGenerator()->name($length, TRUE);
+  }
+
+  /**
+   * Gets the random generator for the utility methods.
+   *
+   * @return \Drupal\Component\Utility\Random
+   *   The random generator
+   */
+  protected function getRandomGenerator() {
+    if (!is_object($this->randomGenerator)) {
+      $this->randomGenerator = new Random();
+    }
+    return $this->randomGenerator;
+  }
+
+  /**
+   * Create select list options.
+   *
+   * @param int $num
+   *   The number of options to create.
+   * @param string $type
+   *   The field type.
+   *
+   * @return array
+   *   An associative array of allowed values keyed by value and the label as
+   *   the array item value.
+   */
+  public function createOptions($num = 5, $type = 'list_string') {
+    $options = [];
+    for ($i = 0; $i < $num; $i++) {
+      if ($type === 'list_string') {
+        $label = $this->getRandomGenerator()->word(10);
+        $key = strtolower($label);
+      }
+      else {
+        $label = $i;
+        $key = $i;
+      }
+      $options[$key] = $label;
+    }
+    return $options;
+  }
+
+  /**
+   * Gets a random option in a list of options.
+   *
+   * @param array $options
+   *   An array of list options.
+   *
+   * @return array
+   *   An indexed array of the key and value.
+   */
+  public function getRandomOption(array $options) {
+    $option = array_rand($options);
+    return [$option, $options[$option]];
+  }
+
+}
