[jQuery] find specific parents?

2008-09-09 Thread rudgr
expression in the parents() function to only include divs that have the attribute class=formrow: parents(div:eq(0)) Is this possible? PS: Sorry, I'm relatively new to jQuery, so if there's a better way to do this I'd like to hear it! Thanks in advance, rudgr

[jQuery] Re: find specific parents?

2008-09-09 Thread rudgr
Swedbergwww.englishrules.comwww.learningjquery.com On Sep 9, 2008, at 6:16 AM, rudgr wrote: Hi, I have the code below to add a highlight class to the parent div if an input field gets focus - jQuery(this).parents(div:eq(0)).addClass('highlighted'); -- div class=formrow

[jQuery] displaying content after certain amount of time?

2008-04-07 Thread rudgr
Hi, I'm relatively new to jquery and was wondering if there's a way to display a div after x milliseconds? Thanks in advance, rudgr

[jQuery] Re: displaying content after certain amount of time?

2008-04-07 Thread rudgr
ah great, thanks! On Apr 7, 1:05 pm, Roncioso [EMAIL PROTECTED] wrote: setTimeout($('#myDiv').show(),1000) ? On 7 Apr, 11:47, rudgr [EMAIL PROTECTED] wrote: Hi, I'm relatively new to jquery and was wondering if there's a way to display a div after x milliseconds? Thanks