I have this HTML:
And I create an object array from it lik
Similar to what Nick posted, but a little cleaner
var dataArray = $("#myform").serializeArray(), dataObj = {}; $(dataArray).each(function(i, field){ dataObj[field.name] = field.value; });
Then access the same way
alert(dataObj['title']);