Index: cck_select_other.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cck_select_other/Attic/cck_select_other.js,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 cck_select_other.js
--- cck_select_other.js	17 May 2010 19:19:58 -0000	1.1.2.2
+++ cck_select_other.js	17 May 2010 20:36:02 -0000
@@ -12,28 +12,42 @@ Drupal.behaviors.cckSelectOther = functi
 
   $.browser.msie == true ? $(this).click(cckSelectOther.switch) : $(this).change(cckSelectOther.switch);
 
-  var selectId = 'edit-field-'+Drupal.settings.CCKSelectOther.field+'-select-other-list';
-  var inputId = 'edit-field-'+Drupal.settings.CCKSelectOther.field+'-select-other-text-input-wrapper';
-  var value = $('#'+selectId+' option:selected').val();
+//  document.write(Drupal.settings.CCKSelectOther.field.length);
+  var field_str = new String(Drupal.settings.CCKSelectOther.field);
+  var fields = new Array();
+  fields = field_str.split(',');
 
-  if (value == "other") {
-    document.getElementById(inputId).style.display = 'block';
-  }
-  else {
-    document.getElementById(inputId).style.display = 'none';
+  // i is our index
+  for (i in fields) {
+    var selectId = 'edit-field-'+fields[i]+'-select-other-list';
+    var inputId = 'edit-field-'+fields[i]+'-select-other-text-input-wrapper';
+    var value = $('#'+selectId+' option:selected').val();
+
+    if (value == "other") {
+      document.getElementById(inputId).style.display = 'block';
+    }
+    else {
+      document.getElementById(inputId).style.display = 'none';
+    }
   }
 
 }
 
 cckSelectOther.switch = function () {
-  var selectId = 'edit-field-'+Drupal.settings.CCKSelectOther.field+'-select-other-list';
-  var inputId = 'edit-field-'+Drupal.settings.CCKSelectOther.field+'-select-other-text-input-wrapper';
-  var value = $('#'+selectId+' option:selected').val();
+  var field_str = new String(Drupal.settings.CCKSelectOther.field);
+  var fields = new Array();
+  fields = field_str.split(',');
 
-  if (value == "other") {
-    document.getElementById(inputId).style.display = 'block';
-  }
-  else {
-    document.getElementById(inputId).style.display = 'none';
+  for (i in fields) {
+    var selectId = 'edit-field-'+fields[i]+'-select-other-list';
+    var inputId = 'edit-field-'+fields[i]+'-select-other-text-input-wrapper';
+    var value = $('#'+selectId+' option:selected').val();
+
+    if (value == "other") {
+      document.getElementById(inputId).style.display = 'block';
+    }
+    else {
+      document.getElementById(inputId).style.display = 'none';
+    }
   }
 }
Index: cck_select_other.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cck_select_other/cck_select_other.module,v
retrieving revision 1.1.2.12
diff -u -p -r1.1.2.12 cck_select_other.module
--- cck_select_other.module	15 Apr 2010 13:46:00 -0000	1.1.2.12
+++ cck_select_other.module	17 May 2010 20:36:02 -0000
@@ -193,6 +193,9 @@ function cck_select_other_pre_render($fo
     drupal_add_js(drupal_get_path('module', 'cck_select_other').'/cck_select_other.js');
     $js = TRUE;
   }
+  else {
+    drupal_add_js(array('CCKSelectOther' => array('field' => $field_name)), 'setting');
+  }
 
   unset($form['#default_value']);
   unset($form['#value']);
@@ -255,6 +258,9 @@ function cck_select_other_post_render($c
     drupal_add_js(drupal_get_path('module', 'cck_select_other').'/cck_select_other.js');
     $js = TRUE;
   }
+  else {
+    drupal_add_js(array('CCKSelectOther' => array('field' => $field_name)), 'setting');
+  }
 
   return $content;
 }
Index: tests/cck_select_other.test
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cck_select_other/tests/Attic/cck_select_other.test,v
retrieving revision 1.1.2.3
diff -u -p -r1.1.2.3 cck_select_other.test
--- tests/cck_select_other.test	22 Mar 2010 20:02:47 -0000	1.1.2.3
+++ tests/cck_select_other.test	17 May 2010 20:36:02 -0000
@@ -190,6 +190,6 @@ class CCKSelectOtherTest extends DrupalW
 		$this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save'));
 		$this->assertFieldById('edit-field-blah-select-other-list', $my_option, t('Select field value matches'));
 		$this->assertFieldById('edit-field-blah-select-other-text-input', $my_text_option, t('Text input field value matches'));
-
 	}
+
 }
