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/

Reply via email to