Hi everyone, Today I will show you the list of events on Jquery
Mouse Events
scroll, click, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, load, resize, scroll, unload, error.
Example Usage
(function($)
{
$(document).ready(function()
{
$('#id).bind('click', function(e)
{
//mouse event fired (element clicked)
});
});
})(jQuery);
Keyboard Events
keydown, keypress, keyup.
Example Usage
(function($)
{
$(document).ready(function()
{
$(document).bind('keypress', function(e)
{
//keyboard event fired
});
});
})(jQuery);
Browser Events
load, resize, scroll, unload, error.
Example Usage
(function($)
{
$(document).ready(function()
{
//browser event fired (document object model loaded)
});
})(jQuery);
DOM Element Events
blur, focus, focusin, focusout, change, select, submit.
Example Usage
(function($)
{
$(document).ready(function()
{
$('#id).bind('blur', function(e)
{
//dom event fired (input focus)
});
});
})(jQuery);
If your website is having problems, please leave a comment below or contact us at Magepow Contact, the Magepow technician team will assist in solving your problem quickly. Thanks.
Please refer to other Magento 2 Extensions and Magento 2 Services.
Hope this article will helpful for you!
Leave a Reply