Andreas94's avatar

how to send a post request in dynamic input fields

Hi everyone,

It's been a while since I'd like to integrate dynamic input fields into my project as you can see in this example:

http://jsfiddle.net/lemonkazi/re8e2yov/

The question I have always asked myself is: How can I send a post request?

Up until now I have always taken the name which is unique and I put it in the post controller with a get request, how do you behave in these cases?

0 likes
1 reply
Snapey's avatar

use array syntax for the field names

instead of name="p_scnt_' + i +'"

try `name="p_scnt['+ i +']"

and use incremental Ids for the fields also

Please or to participate in this conversation.