Users Pricing

forum

Home Forums Convert form data to JS object with jQuery – MindStick

Convert form data to JS object with jQuery

Anonymous User 2483 29 May 2013

How do I convert all elements of my form to a JS object?

I'd like to have some way of automatically building a JS object from my form, without having to loop over each element. I do not want a string, as returned by 

$('#formid').serialize();, nor do I want the map returned by $('#formid').serializeArray();

Thanks in advance

1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md