Autocomplete on ajax generated inputs
I am using the autocomplete script by Dylan Verheul and all works fine when the inputs are static.
I have a form where the user types in the number of species they have seen.
This then dynamically creates text inputs for them to enter species names.
E.g. if the user types in 4 the form will then be displaying the following
-
<input type="text" name="species0" class="speciesNameSuggestBox" />
<br />
<input type="text" name="species0" class="speciesNameSuggestBox" />
<br />
<input type="text" name="species0" class="speciesNameSuggestBox" />
<br />
<input type="text" name="species0" class="speciesNameSuggestBox" />
When I do this the autocomplete does not work.
Can anyone offer some guidance please?
Thanks