This is probably very simple, but could somebody tell me how to get the cursor blinking on a text box on page load?
Javascript – How to focus on a form input text field on page load using jQuery
focushtmljavascriptjquery
Related Topic
- Html – How to give text or an image a transparent background using CSS
- Javascript – Get selected text from a drop-down list (select box) using jQuery
- Javascript – How to refresh a page with jQuery
- Javascript – Scroll to an element with jQuery
- Javascript – How to get the value of text input field using JavaScript
- Javascript – Why does the JavaScript code receive a “No ‘Access-Control-Allow-Origin’ header is present on the requested resource” error, while Postman does not
Best Answer
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: