how to serialize form data in jquery

Solutions on MaxInterview for how to serialize form data in jquery by the best coders in the world

showing results for - "how to serialize form data in jquery"
Kiki
05 May 2018
1
2  
3    $("button").click(function(){
4
5  $("div").text($("form").serialize());
6
7 });
8  
9 
Juan Martín
29 Jun 2016
1var data = {};
2$(".form-selector").serializeArray().map(function(x){data[x.name] = x.value;}); 
3