JQuery onclick function to focus input -
I need a JQuery function, which means that if the user clicks on some text on the page, then he is focused on input . (Function () {$ ('# header.search input'). Focus ();});});
Nothing has been registered on the firebug.
Any thoughts?
Wonderful
Span & lt; Br> & Lt; Input id = "InputToFocus" type = "text" & gt; & Lt; / Span & gt; $ ('Span'). Click (function () {$ ('#InputToFocus'). Focus ();}); seems to work well, maybe it's a problem with your selectors Can you post the structure of your HTML around the input?
Comments
Post a Comment