You have a form on your page:

<form>
  <input type="text" name="input" value="val1" id="input">
  <textarea name="textarea" rows="8" cols="40">val2
</form>
How can you get the result of form values serialized as arrays?
Explanation
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.

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты