[jQuery] Re: How do I write this jquery expression?

2008-04-03 Thread SnapShot
I think it's: $("input[type=input]", $(".rowData")).blur( ... ) In other words: within the context of the set of "rowData" element, select the input of type "text". On Apr 3, 4:58 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > Within my TR of class "rowData", how do I write a jqu

[jQuery] Re: How do I write this jquery expression?

2008-04-03 Thread Jake McGraw
$("tr.rowData :text, tr.rowData textarea").blur(function(){ /* Callback goes here */ }); On Thu, Apr 3, 2008 at 4:58 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > > Within my TR of class "rowData", how do I write a jquery onblur > handler for every input field of type = "text" o

[jQuery] Re: How do I write this jquery expression?

2008-05-15 Thread Wizzud
var visID = $('div.subNav:visible').attr('id'); On May 15, 10:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I have a number of DIVs with class = "subNav". How do I write a > Jquery expression to tell me the ID of the DIV with class "subNav" > whose display element is not "none"

[jQuery] Re: How do I write this jquery expression?

2008-05-15 Thread Klaus Hartl
var id = $('div.subNav').filter(function() { return $ (this).css('display') == 'block'; }).attr('id'); (untested) --Klaus On 15 Mai, 23:28, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I have a number of DIVs with class = "subNav".  How do I write a > Jquery expression to tell me

[jQuery] Re: How do I write this jquery expression?

2008-05-15 Thread Ryura
var id = $("div.subNav:visible").attr("id"); On May 15, 5:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I have a number of DIVs with class = "subNav". How do I write a > Jquery expression to tell me the ID of the DIV with class "subNav" > whose display element is not "none" (i.