[jQuery] Re: finding if element is focused

2008-02-18 Thread Eridius
anyone? Eridius wrote: i know i bind a function to the event focus of an element but is there a way i can see if a element is focused like? if(element.focus()) { //true } else { //false } -- View this message in context:

[jQuery] Re: finding if element is focused

2008-02-18 Thread andrea varnier
On 18 Feb, 16:22, Eridius [EMAIL PROTECTED] wrote: anyone? I think that if you don't post some more infos it will be very difficult to think of an answer. what do you need this for? maybe someone can suggest another approach... :)

[jQuery] Re: finding if element is focused

2008-02-18 Thread Karl Swedberg
this should help... http://www.softwareunity.com/sandbox/JQueryMoreSelectors/ --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 8, 2008, at 10:36 AM, Eridius wrote: i know i bind a function to the event focus of an element but is there a way i

[jQuery] Re: finding if element is focused

2008-02-18 Thread George
Yep do give it a go. It's probably the :focus selector that you're after. I'm sorry to say that I've not yet tested it with v1.2.3 and I fear it will probably break because of the changes to the way selector expressions must be defined in the latest version (as functions instead of eval text).