i have a page where i fill a form with personal data such as name, surname, email... i'm using the bassistance.de autocomplete plugin to retrieve data from a db, typing the first letters of a name in the first input box and then clicking on the desired row.
i do the same thing in another section of the same form, where i search for items' details, such as item_code, color, price: i write the first letters into the input box of the item_code, and the plugin searches in the db... and it works. of course i'd like to add more than one article... and that's my drama. i put the code to obtain another "block" of <input text>s into a var, and i have an [add another article] button that writes the new block into the page when i click it. the problem is that the autocomplete plugin works on div IDs. well, if i assign a different ID to each autocompleting input, the autocomplete plugin doesn't work (say, i have IDs such as foo0, foo1, foo2 where the plugin looks for #foo); if i use always the same ID (such as foo), the autocomplete works just for the input field of the first block. i can't imagine another way to obtain a similar result: having a bunch of input texts i can repeat clicking on a button, where all the first input boxes work with autocomplete. please, could you help me? thanks in advance ryo