Use:

$("#orderFinder input").val('')[0].focus()

--Francesco

Paul ha scritto:

I'm trying to focus the cursor in a text box at the end of a simple animation, and it won't. The cursor shows up temporarily in the box, then flits away...

$("#orderFinder").SlideToggleUp(250, null, 'bounceout'); // show/hide the div

$("#orderFinder input").val('').focus(); // reset the value and focus on the field

------------------------------------------------------------------------

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to