Do this.
If your element is something like this..
Your script would be
For what it’s worth, you can use the autofocus attribute on HTML5 compatible browsers. Works even on IE as of version 10.
by James Palmer
Do this.
If your element is something like this..
Your script would be
For what it’s worth, you can use the autofocus attribute on HTML5 compatible browsers. Works even on IE as of version 10.