-1

See http://jsfiddle.net/jFzhC/ for the button I'm looking for. Although, this only allows for one input field to be added at a time.

How can I display 3 fields, horizontally aligned, where the 'add new fields' button creates 3 additional new fields under the original 3 and so on.

chasemb
  • 167
  • 6
  • 20

2 Answers2

4

You can clone a template and save yourself a lot of code at the same time:

http://jsfiddle.net/minitech/bPhBG/

Ry-
  • 218,210
  • 55
  • 464
  • 476
1

http://jsfiddle.net/cADRY/1/

You can simplify your code A LOT!

Korvin Szanto
  • 4,531
  • 4
  • 19
  • 49