Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get form data serialize jquery

   var form_data = $('#add_post').serializeArray(); //encode in JSON string
        var post_title = form_data[0].value;
        var post_description = form_data[1].value;
     
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #form #data #serialize #jquery
ADD COMMENT
Topic
Name
7+1 =