Answers for "get form data serialize jquery"

0

how to serialize form data in jquery

$("button").click(function(){

  $("div").text($("form").serialize());

 });
Posted by: Guest on April-24-2021
1

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;
Posted by: Guest on October-20-2021
0

jquery serialize form data to object

var data = {};
$(".form-selector").serializeArray().map(function(x){data[x.name] = x.value;});
Posted by: Guest on September-01-2021

Code answers related to "get form data serialize jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language