Sunday, April 26, 2015

Using jQuery for Autocomplete Textboxes

$(function () {




};


var createAutoComplete = function(){
          var $input = $(this);
         
          var options = {
                    source: $input.attr("thingsToUseForAutocomplete")
          };
          $input.autocomplete(options);
};

//wireup elements of DOM

$("input[thingsToUseForAutocomplete].each(createAutoComplete);

No comments: