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!
Can you answer this question?
Write Answer1 Answers