You are on page 1of 2

Plugins (https://plugins.jquery.com/) Contribute (https://contribute.jquery.

org/)

Events (https://js.foundation/events) Support (https://jquery.org/support/)

JS Foundation (https://js.foundation/)

E1MjE4OTk2NjMwMzQsImJmIjp0cnVlLCJwbiI6ImJyb2FkY2FzdCIsInVyIjoiaHR0cHM6Ly9qcXVlcnkub3JnL2RvbmF0ZS8ifQ&

Home (http://learn.jquery.com)

About (http://learn.jquery.com/about/)

Contributing (http://learn.jquery.com/contributing/)

Style Guide (http://learn.jquery.com/style-guide/)

Be /#
ta be
Posted in: Events (http://learn.jquery.com/events/)

(/ ta)
Chapters

ab
Event Helpers

ou
t
 About jQuery
(//learn.jquery.com jQuery offers a few event-related helper functions that save you a few
/about-jquery/) keystrokes. Here is an example of one, the .hover() function.

 Using jQuery Core .hover()


(//learn.jquery.com
The .hover() (http://api.jquery.com/hover/) method lets you pass one or
/using-jquery-core/)
two functions to be run when the moueenter and moueleave events
Frequently Asked occur on an element. If you pass one function, it will be run for both events;
Questions if you pass two functions, the first will run for moueenter , and the second
(//learn.jquery.com will run for moueleave .
/using-jquery-
core/faq/) Note: Prior to jQuery 1.4, the .hover() method required two functions.

 Events
1 // The hover helper function
(//learn.jquery.com 2 $( "#menu li" ).hover(function() {
/events/) 3 $( thi ).toggleCla( "hover" );
4 });
 Effects
(//learn.jquery.com
You can find more helper functions on the API site for Events
/effects/)
(https://api.jquery.com/category/events/).
 Ajax
(//learn.jquery.com
/ajax/)  jQuery Event Basics Introducing Events 
 Plugins (http://learn.jquery.com (http://learn.jquery.com
(//learn.jquery.com
/events/event-basics/) /events/introduction-
/plugins/)
to-events/)
 Performance
(//learn.jquery.com
/performance/)
Last Updated Suggestions,
 Code Organization Problems, Feedback?
(//learn.jquery.com  December 17, 2015
 Open an Issue or
/code-organization/) Submit a Pull Request on
GitHub
Deferreds (https://github.com
/jquery
(//learn.jquery.com
/learn.jquery.com
/code- /tree/master
organization /page/events/event-
helpers.md)
/deferreds/)

 jQuery UI
(//learn.jquery.com
/jquery-ui/)
Widget Factory
(//learn.jquery.com
/jquery-ui/widget-
factory/)

Using jQuery UI
(//learn.jquery.com
/jquery-
ui/environments/)

 jQuery Mobile
(//learn.jquery.com
/jquery-mobile/)

BOOKS

Learning jQuery jQuery in Action jQuery Succinctly


Fourth Edition Bear Bibeault, Yehuda Cody Lindley
Karl Swedberg and (http://www.syncfusion.com
Katz, and Aurelio De
Jonathan Chaffer Rosa /resources
(https://www.manning.com
(https://www.packtpub.com /techportal/ebooks
/web-development /books/jquery- /jquery?utm_medium=BizDev-
/learning-jquery- in-action-third- jQuery.org0513)
fourth-edition) edition?a_bid=bdd5b7ad&
a_aid=141d9491)

Copyright 2018 The jQuery Foundation (https://jquery.org


/team/). jQuery License (https://jquery.org/license/)
 Learning Center (http://learn.jquery.com/)

Web hosting by Digital Ocean (http://digitalocean.com) |  Forum (http://forum.jquery.com/)


CDN by StackPath (http://www.stackpath.com)
 API (http://api.jquery.com/)

 Twitter (https://twitter.com/jquery)

 IRC (http://irc.jquery.org/)

 GitHub (https://github.com/jquery)

You might also like