Replies: 1 comment
-
you can use autofocus DOM property after accessing the DOM element. var x = document.getElementById("myPassword").autofocus; after (.) autofocus property will simply put focus of your cursor to that element. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm looking for an autofocus javascript method. I would like to be able to open a select via javascript and place the cursor to avoid the user having to click on.
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions