jQuery focus()

The jQuery focus event is implicitly used for a limited set of elements like input, select, a href, etc. As the name suggests, this event occurs when an element gains focus. Syntax: To trigger the focus event for selected elements. $(selector).focus() To add a function to the focus event. $(selector).focus(function) Function: It is an optional … Read more