Convert form data to JavaScript object with jQuery

Convert form data to JavaScript object with jQuery

serializeArray already does exactly that. You just need to message the data into your required format:

Method 1:

Method 2:

 

Leave a Reply

Your email address will not be published. Required fields are marked *

97 − 92 =