jQuery Intro

jQuery Intro Quiz

jQuery Intro Exercise

jQuery Basic

jQuery Basic Quiz

jQuery Basic Exercise

jQuery Advance

jQuery Advance Quiz

jQuery Advance Exercise

jQuery Selectors

jQuery Effects

jQuery Events

jQuery Methods and Properties

jQuery Traversing

jQuery CSS and HTML Methods

jQuery focus() Method

jQuery focus() Method



The focus event is used to occur when an element gets focused. The focus() method triggers the focus event. We can attach a function when a focus event occurs. It is sometimes used together with the blur() method.




Its syntax is:- $(selector).focus(function)


Further Explanation:-


Parameter Description
function Optional. Specifies the function to run when the blur event occurs

Code Explanation

All Tutorials related to jQuery Events

All Sections related to jQuery