[jQuery] Finding Parent DOM element
Is there yet an easy way to find a matching parent element using jquery methods? My example is that I have a form with several fields and several buttons, one being the reset button. When I click the reset button, I want a way to find the parent form element, so I can go through the inputs and restore their original background-color, or other properties. I would just reset all form elements, except that this page has a form on each tab and I only wish to reset a single form. Any ideas? I'm thinking I'll have to make a recursive parentNode function, but would rather not reinvent if someone has already tackled this.
-Brian
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/