commit f7c834e
Author: Evan Heidtmann <evan.heidtmann@gmail.com>
Date:   Tue Feb 19 16:35:53 2013 -0800

    Fix select_or_other js in bootstrap

diff --git a/select_or_other.js b/select_or_other.js
index c68f332..528ed5c 100755
--- a/select_or_other.js
+++ b/select_or_other.js
@@ -14,17 +14,17 @@
       ele = jQuery(ele).parents(".select-or-other")[0];
     }
     if (jQuery(ele).find(".select-or-other-select option:selected[value=select_or_other], .select-or-other-select:checked[value=select_or_other]").length) {
-      jQuery(ele).find(".select-or-other-other").parent("div.form-item").show(speed, function() {
+      jQuery(ele).find(".select-or-other-other").parents("div.form-item").first().show(speed, function() {
         $(this).find(".select-or-other-other").focus();
       });
     }
     else {
-      jQuery(ele).find(".select-or-other-other").parent("div.form-item").hide(speed);
+      jQuery(ele).find(".select-or-other-other").parents("div.form-item").first().hide(speed);
       if (page_init)
       {
         // Special case, when the page is loaded, also apply 'display: none' in case it is
         // nested inside an element also hidden by jquery - such as a collapsed fieldset.
-        jQuery(ele).find(".select-or-other-other").parent("div.form-item").css("display", "none");
+        jQuery(ele).find(".select-or-other-other").parents("div.form-item").first().css("display", "none");
       }
     }
   }
@@ -51,4 +51,4 @@
     }
   };
 
-})(jQuery);
\ No newline at end of file
+})(jQuery);
