Adding form inputs in javascript (jquery)
- by matthewsteiner
I understand that you do something like:
$('form').append('<input type="text" name="color-1" value="Hello" />');
But I have two questions about it. First off, I don't want it added to the end of the form, but after the last input in the "color" section. Secondly, where "name=color-1", I need the one to increment if they want to add more…