forum

Home / DeveloperSection / Forums / Convert form data to JS object with jQuery

Convert form data to JS object with jQuery

Anonymous User 2068 29-May-2013
Hi Developers,

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! 

Updated on 29-May-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By