Answers for "how to serialize form data in jquery"

0

how to serialize form data in jquery

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

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

 });
Posted by: Guest on April-24-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 "how to serialize form data in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language