File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ $( document.body ).click(function () {
72
72
<example >
73
73
<desc >To access a jQuery object instead of the regular DOM element, use <code >$( this )</code >. For example:</desc >
74
74
<code ><![CDATA[
75
- $( "span" ).click(function () {
75
+ $( "span" ).click(function() {
76
76
$( "li" ).each(function() {
77
77
$( this ).toggleClass( "example" );
78
78
});
@@ -104,8 +104,8 @@ To do list: <span>(click here to change)</span>
104
104
<example >
105
105
<desc >Use "return" to break out of each() loops early.</desc >
106
106
<code ><![CDATA[
107
- $( "button" ).click(function () {
108
- $( "div" ).each(function ( index, domEle ) {
107
+ $( "button" ).click(function() {
108
+ $( "div" ).each(function( index, domEle ) {
109
109
// domEle == this
110
110
$( domEle ).css( "backgroundColor", "yellow" );
111
111
if ( $( this ).is( "#stop" ) ) {
You can’t perform that action at this time.
0 commit comments