I have these dynamic dropdowns with dynamic ids and value.
<select id=extra['123']></select>
<select id=extra['453']></select>
<select id=extra['789']></select>
In php, I am able to get the value using:
$_REQUEST['extra']
And I get an array.
[extra] => Array
(
[123] => 0
[453] => 0
[789] => 0
)
But how do I create an array in jquery? Thanks in advance!
You can use wild card
Live Demo
Iterating throuh all selects
For getting the numbers in id of selects
Live Demo