i have a list of textboxes in a column of a html table. The table has an "Add" and "Remove" button next to it which (when clicked) will add new rows or delete existing rows.
I would like to have a dropdown select on my page that is essentially linked to this array of textboxes, listing out the values of the list of textboxes so:
- if i delete a textbox, that value should get removed from my dropdown
- If i add a new row (and thus a new textbox), that value should get added to my select
- As i edit the name in one of the textboxes, the select dropdown will update itself to be in sync with my editing keystrokes.
Is there any jquery plugin that will help with this syncronization. any ideas on how to do this without getting insanely complicated?