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
I'm using:
$($('form').prop('elements')).each(function(){ console.info(this) });
It Seems ugly, but to me it is still the better way to get all the elements with jQuery.
jQuery