JQuery focus an element

Posted by stealthcopter on Stack Overflow See other posts from Stack Overflow or by stealthcopter
Published on 2010-04-24T10:37:36Z Indexed on 2010/04/24 10:43 UTC
Read the original article Hit count: 378

Filed under:
|

In javascript the following works to give focus to the edit_2 input box:

document.getElementById("edit_2").focus();

However using Jquery this does not:

$("#edit_2").focus;

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery