Like when you click on the button to add another input?

<input type="text" placeholder="Name*">
 <input type="text" placeholder="Email*">
 <input type="text" placeholder="Phone*">
 <input type="text" class="link" placeholder="Link to profile"> <input type="text" class="amount" placeholder="Qty">
 <div class="add">+</div>
 <button class="sub-btn">Buy</button>


How to make so that when you click on div.add added another input (input code which should be added below)
<input type="text" class="link" placeholder="Link to profile"> <input type="text" class="amount" placeholder="Qty">


an unlimited number of times, and it is difficult if not show yet how to limit the number
July 9th 19 at 13:56
3 answers
July 9th 19 at 13:58
Solution
With the restriction (10 times):
https://jsfiddle.net/slippyk/g7onu33f/

If you want no restrictions - just remove the condition.

Do I put the JS code ? and it is not responding I can
11ab561d93da49019c34b073d5b6639c.jpg - magali.Armstrong87 commented on July 9th 19 at 14:01
understood. Thank you very much! - magali.Armstrong87 commented on July 9th 19 at 14:04
July 9th 19 at 14:00
Solution
Thank you - magali.Armstrong87 commented on July 9th 19 at 14:03
July 9th 19 at 14:02
Solution
Same as but without* "JS" jsfiddle.net/lega911/u0ha54t8

Find more questions by tags JavaScript