My input fields are as follows:
<input name='223' type='number' class='form-control score' value='70'>
<input name='224' type='number' class='form-control score' value='65'>
<input name='225' type='number' class='form-control score' value='87'>
I am looking to manipulate the 'name' attribute to serve as indices for each 'value' using JavaScript for ajax posting. Essentially, I aim to retrieve values as a single array and map the names as the array indexes.
For example:
array (
[223] => 70
[224] => 65
[225] => 87
)