This is what I have so far and the shoe types are boots, wellingtons, leather, trainers (in that order)
boots, wellingtons, leather, trainers (in that order)
I want to iterate through and assign th
You can try this to create an associate array in jquery
var arr = {}; $('[type=number]').each(function(){ arr.push({ $(this).attr('id'): $(this).val() }); }); console.log(arr);
This will allow you to send your all data whatever you want to pass in array by ajax.