I was just wondering what the best way of looping through all the child elements of a form would be? My form contains both input and select elements.
At the moment I
As taken from the #jquery Freenode IRC channel:
$.each($(form).serializeArray(), function(_, field) { /* use field.name, field.value */ });
Thanks to @Cork on the channel.