Reputation: 2203
What is the difference between this?
$("form").serialize();
and this?
var theForm = $("form");
$(theForm[0]).serialize();
How do you get the second sample to serialize like the first one?
Upvotes: 0
Views: 433
Reputation: 50976
First one selects all forms and serializes all form fields.
Second one selects form fields from FIRST form and serializes them
Upvotes: 2