Question and answer is powered by AnsPress.io
In my HTML web page, I want to set focus in the form input fields. I want to set focus in the form fields using jQuery.
Set focus in the input field when you set validation using jQuery in your web page, use focus() in the jQuery that’s like:
$(‘#name’).focus();
“#name” is the input field ID name.