im sorry if this was posted already i have been looking to no avail..
I just want to know how to loop through nested form \'elements\' (elements being not only the s
You can use contents() (and filter out text nodes if needed) or find('*') to get all elements, though I dislike the use of wildcards.
$('form').contents() .filter( function() { return this.nodeType == 1; } ) .each(...);
or
$('form').find('*') .each(...);