Parameters: It does not accept any parameters.
Return Value: This method does not return any value.
Focuses on an input field on hovering over that field.
Parameters: This method does not accept any parameter.
Illustration of blur method on clicking a field:
After clicking on set focus-
After clicking on remove focus-
- jQuery | focus() with Examples
- How to find which DOM element has the focus using jQuery?
- JQuery | Set focus on a form input text field on page load
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.