Skip to content

Commit 97333d7

Browse files
committed
Event Helpers: Note that .toggle() was removed
Closes jquerygh-449
1 parent 2510bdb commit 97333d7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

page/events/event-helpers.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jQuery offers two event-related helper functions that save you a few keystrokes.
99

1010
### `.hover()`
1111

12-
The `.hover()` method lets you pass one or two functions to be run when the
12+
The [`.hover()`](http://api.jquery.com/hover/) method lets you pass one or two functions to be run when the
1313
`mouseenter` and `mouseleave` events occur on an element. If you pass one
1414
function, it will be run for both events; if you pass two functions, the first
1515
will run for `mouseenter`, and the second will run for `mouseleave`.
@@ -25,7 +25,9 @@ $( "#menu li" ).hover(function() {
2525

2626
### `.toggle()`
2727

28-
The `.toggle()` method is triggered by the "click" event and accepts two or
28+
<div class="warning">Note: This method signature was removed in jQuery 1.9. jQuery also provides an animation method named .toggle() that toggles the visibility of elements.</div>
29+
30+
The [`.toggle()`](http://api.jquery.com/toggle-event/) method is triggered by the "click" event and accepts two or
2931
more functions. Each time the click event occurs, the next function in the
3032
list is called. Generally, `.toggle()` is used with just two functions;
3133
however, it will accept an unlimited number of functions. Be careful, though:

0 commit comments

Comments
 (0)