Sha256: e99d30d13e91d344fd18f8076b61c357eeca1931740e9a0706ef53420762056a

Contents?: true

Size: 448 Bytes

Versions: 3

Compression:

Stored size: 448 Bytes

Contents

jQuery(function($){//on document ready
  //autocomplete
  $('input.autocomplete').each(function(){
    var input = $(this);
    input.autocomplete(input.attr('autocomplete_url'),{
      matchContains:1,//also match inside of strings when caching
      //    mustMatch:1,//allow only values from the list
      //    selectFirst:1,//select the first item on tab/enter
      removeInitialValue:0//when first applying $.autocomplete
    });
  }); 
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple_autocomplete-0.3.2 example_js/javascripts/application.js
simple_autocomplete-0.3.1 example_js/javascripts/application.js
simple_autocomplete-0.3.0 example_js/javascripts/application.js