Man this cross browser compatibility thing is going to ruin web 2.0.

 

How about this? 

 

For focus on a div you use .click().

 

For unfocus on a div you put it inside a larger div that surrounds you
entire app.

 

Now if there was a way to capture a click on JUST the outer div and not the
inner div, that could serve as an unfocus event.

 

Am I making any sense here? 

 

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Glen Lipka
Sent: Tuesday, August 14, 2007 3:59 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: focus with DIVs

 

Interestingly (or not), IE allows you to put a tabindex="" on a div which
will put it in the queue to gain focus.  It fires the event properly.
Firefox doesn't seem to allow this.

Glen

On 8/14/07, Mitchell Waite <[EMAIL PROTECTED]> wrote:

Hi gang

 

Is there a way to use focus with a div rather than just an input element?

 

If there is not how would you handle it so when a container gains or losses
focus some visual  effect occurs (like its background becomes gray).

 

Thanks

 

Mitch

 

Reply via email to