2011/8/9 Brams <[email protected]>:
> Hello,
>
> I guess this is a much talked about topic but just wondering if there's
> truly a concrete, neat and efficient solution out there.
>
> I have a text-box with a jQuery blur event attached to it. When the text-box
> loses focus i do stuff on the page like disabling certain elements.
>
> However, i have a button on the page, and upong the onclick of that button i
> want to do something else (i.e. alert ("foo")). However the 'alert'
> statement never appears since the blur event of the text-box has precedence.
> How can i force the click event of the button or at least make it fire
> before the blur event.
>
> -Thanks
> Ibrahim

In every environment the process of changing focus is the followin:
The current element fires a blur event, then  the element gaining
focus recieves the focus element (in most cases the element that has
blurred is passed along with the event), So don't disable the button,
that is supposed to be clicked when your field looses focus.

-- 
Poetro

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to