137
rated 0 times
[
139]
[
2]
/ answers: 1 / hits: 45495
/ 9 Years ago, wed, december 30, 2015, 12:00:00
I would like to add a function that generates multiple fields to my form.
This is how my form looks like:
<form action=form_sent.php method=post>
<input name=name type=text placeholder=Name><br>
<input name=phone type=text placeholder=Phone><br>
<input name=email type=text placeholder=E-Mail><br><br>
<button>Add more fields</button><br><br>
<input type=submit>
</form>
In my case I want 3 new fields (name, phone, email) when clicking on Add more fields.
How can I do this?
https://jsfiddle.net/374cxt5s/
More From » jquery