DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+5 =
Submit