Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery serialize form data to object

var data = {};
$(".form-selector").serializeArray().map(function(x){data[x.name] = x.value;}); 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #serialize #form #data #object
ADD COMMENT
Topic
Name
2+7 =