I'm constructing a order form for a wedding photographer, so guests can order pictures from within the client album section of his site.
Guests order between 1 and 50 pictures, so I'm currently using jQuery's clone() function, which is working great.
However I also need to change the name attr of each input, each time I add one so the form processing can pick up on the new inputs.
name="picture-1"
add field
name="picture-2"
Does anyone know if this is possible?
I believe I can use addClass() each time clone() is called, but how can I make addClass() to count?
Thank you
<input name="picture[]" />if server side language is PHP