Skip to content Skip to sidebar Skip to footer

And JQuery Autocomplete

Once i change the type of the element to the html5 type search, jQuery's Autocomplete functionality just won't work anymore. I use jQuery Mobile, and i am trying to u

Solution 1:

It's because the jQuery UI Autocomplete select only elements with type="text"

Have you tried to attach the Autocomplete to the elements with id selector?


Solution 2:

Using:

<input type="text" data-type="search" />

will give the same visual results as

<input type="search" />

But the autoComplete plugin will still work, also broken with type="search", https://github.com/commadelimited/autoComplete.js

Might also fix jQuery UI Autocomplete?


Post a Comment for " And JQuery Autocomplete"