Skip to navigation
How to receive a html form data with jQuiery into a JavaScript array
11.11.15
var fields = jQuery('#replace_form').serializeArray(); var input = []; jQuery.each( fields, function( i, field ) { input[field.name] = field.value; }); console.log(input);
https://api.jquery.com/serializeArray/
Reply
Anonymous
Information Epoch 1740214523
Make each program do one thing well.
Home
Notebook
Contact us