I want to use jquery autocomplete in a foreach loop.
When using ids, only the first line would work with autocomplete:
JSFiddle with IDs
The Second Method is to use class, but there would ALL fields overwritten
I found a third one, wich clone something:
JSFiddle with clone
How can i Change the “description” in the third one?
Or has somebody the right js/jquery experience to solve my problem?
I need the Loop arround the lines because the lines are dynamicaly
Give your elements unique id’s and select the elements by these id’s.
Updated Fiddle