1
I have an ajax code http://jsfiddle.net/rubensoul/dcb14q79/ and I need the values that appear to be dynamic, example:
In the link I put has 3 inputs and in js I created for only 1, if I put for everyone it would send normally
checkbox:$($("#checkbox input")[0]).prop("checked")?$($("#checkbox input")[0]).val():'',
Except that I need these values to be dynamic, that is, I do not need to put 1 by 1. I would put only 1. that it would assign the value of each input automatically without having to touch this code again.
It’s possible and how I can fix it?
I stand by
How do you want to receive this in PHP? a string? a JSON?
– Sergio
Sorry, I forgot to mention this, it is by json it will be updated it gets the values
– Rubens Junior