crowdint / rails3-jquery-autocomplete

An easy and unobtrusive way to use jQuery's autocomplete with Rails 3

Home Page:http://rubygems.org/gems/rails3-jquery-autocomplete

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

trim() function not working in IE6

bituinb opened this issue · comments

Line 121(autocomplete-rails-uncompressed.js) fails in IE6

      if(jQuery(this).val().trim() != remember_string.trim()){
                  jQuery(jQuery(this).attr('data-id-element')).val("");
          jQuery(this).unbind('keyup.clearId');
        }

replace with

        if($.trim( jQuery(this).val()) != $.trim( remember_string)){
          jQuery(jQuery(this).attr('data-id-element')).val("");
          jQuery(this).unbind('keyup.clearId');
        }