I am using jquery and looking for a autocomplete that will support the
must Match option (where the user must enter an exists item name)
jQueryUI's autocomplete can do this along with Scott González' autoSelect plugin, combined with the change event on the widget. If you include the plugin, all you should need is
First you can write on HTML Code:
<input id="auto" />
Then You can write Javascript :
Or you can see the Demo Application
jQueryUI's autocomplete can do this along with Scott González' autoSelect plugin, combined with the change event on the widget. If you include the plugin, all you should need is
First you can write on HTML Code:
<input id="auto" />
Then You can write Javascript :
$(function () { $("#auto").autocomplete({ source: ['England', 'Germany', 'Denmark', 'Sweden', 'France', 'Greece', 'Italy'], change: function (event, ui) { if (!ui.item) { this.value = ''; } } }); });
Auto Complete Text JQuery |
Or you can see the Demo Application
0 komentar
Berkomentarlah dengan Bahasa yang Relevan dan Sopan.. #okemasbro! ^_^