In a given method, from my input, when typing "me" it checks if the fruit exists in this array:
['banana', 'melao', 'uva', 'melancia']
In this case, bring me (position 1 - melao and position 3 - watermelon).
I've tried using inArray
, but it only looks at the whole word and not only part of the string of it ...
PS: I can not use jquery UI
for technical reasons because it would conflict with the autocomplete
function.