Great, thanks. :)
BTW: I have found that this is also true of .select()
> Perhaps calling focus ($("#myinput").focus()) should actually set the
focus on the element...
I guess actually it might cause difficulty if another selector type was
used since there may be more than on match.
Jez
-----Original Message-----
From: Sam Collett [mailto:[EMAIL PROTECTED]
Sent: 06 November 2006 12:07
To: jQuery Discussion.
Subject: Re: [jQuery] set focus?
On 06/11/06, Jez McKean <[EMAIL PROTECTED]> wrote:
>
>
> I see focus() will run the events tied to an elements onfocus, but how
> can I set the focus.
> (e.g. click button to un-disable a text input, then set the focus on
> said
> input.)
>
> Regards,
> Jez
$("#myinput")[0].focus()
Perhaps calling focus ($("#myinput").focus()) should actually set the
focus on the element as well as fire the onfocus event - rather than
just fire the event.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/