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
What you want is a function that will return an object {}
{}
LIVE DEMO
function shoe_types(){ var shoeObj = {}; $('[name="number"]').each(function(){ shoeObj[this.id] = this.value; }); return shoeObj; } shoe_types(); // [object Object]