Hello Readrs,
We will learn about JQuery event in below.
JQuery event provide you a facility to user interaction with a web page it means that you can code that runs when a user click(s) on a certain part of the page or an element(s).
An event represents the exact moment when something happens with related web page.
Example -
$( 'li' ).on( 'click', function( event ) {
console.log( 'clicked', $( this ).text() );
});
jQuery has 4 basice type event-
Mouse Events :-
click
dblclick
mouseenter
mouseleave
Keyboard Events-
Keydown
Keypress
Keyup
Form Events-
Submit
Focus
Change
Blur
Document/Window Events-
Load
Resize
Scroll
Unload
0 Comment(s)