• 1
name Punditsdkoslkdosdkoskdo

How to focus on a form input text field on page load using jQuery?

This is probably very simple, but could somebody tell me how to get the cursor blinking on a text box on page load?

Set focus on the first text field:


This also does the first text field, but you can change the [0] to another index:


Or, you can use the ID:

  • 0
Reply Report