i am currently working with a js function that gives an html input field an autocomplete feature. This is working fine, however it only works for the first word a user gives. Is there a way to make the autocomplete function run for every word entered in a string?
here is the function
$(function() {
$("#text-input").autocomplete({
source: ["Eastern Redbud", "Eastern White Pine", "Eastern Red cedar",],
minLength: 1
});
});