[jQuery] Re: find specific parents?

2008-09-09 Thread Karl Swedberg
You can use a CSS selector. just add .formrow to the selector you already have: jQuery(this).parents(div.formrow:eq(0)).addClass('highlighted'); http://docs.jquery.com/Selectors --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 9, 2008, at 6:16 AM,

[jQuery] Re: find specific parents?

2008-09-09 Thread rudgr
Thanks! On Sep 9, 2:28 pm, Karl Swedberg [EMAIL PROTECTED] wrote: You can use a CSS selector. just add .formrow to the selector you   already have: jQuery(this).parents(div.formrow:eq(0)).addClass('highlighted'); http://docs.jquery.com/Selectors --Karl Karl