You have a form on your page:

  <input type="text" name="input" value="val1" id="input">
  <textarea name="textarea" rows="8" cols="40">val2
How can you get the result of form values serialized as arrays?
The serializeArray() method creates an array of objects (name and value) by serializing form values. You can select one or more form elements (like input and/or text area), or the form element itself.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Sign Up Now
or Subscribe for future quizzes