[jQuery] dynamic array of text inputs.. possible with current plugin?
Hi,
Consider a group of text <input>'s, all related that will post as an
array on submit.
In the beginning, there is only one <input> in the group.
If, onChange/onBlur, an <input>:
a) is the last in the group, and
b) has an empty value
Then we assume there is more data to be entered and an additional
<input> will be added dynamically at the bottom of the list and
focused.
If, onChange/onBlur, an <input>'s value is empty, wherever it is in
the group, it will be removed from the page and focus will go to the
next element.
Additionally, the order of the <input>'s should be draggable, and they
should work with ajax autocomplete.
I thought of using a multiple autocomplete textarea for this, but I
need the draggable functionality for each line in the list.
Is this kind of dynamic list of input fields possible with an existing
jQuery plugin, or should I look into building my own?
Thanks,
Jamie