Skip to content

Commit e0a236b

Browse files
liltechnomancermgol
authored andcommitted
closest: Correct spelling of "highlight"
Closes jquery#1045
1 parent 8dabbaf commit e0a236b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

entries/closest.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ $( "li.item-a" )
109109
<desc>Show how event delegation can be done with closest. The closest list element toggles a yellow background when it or its descendent is clicked.</desc>
110110
<code><![CDATA[
111111
$( document ).on( "click", function( event ) {
112-
$( event.target ).closest( "li" ).toggleClass( "hilight" );
112+
$( event.target ).closest( "li" ).toggleClass( "highlight" );
113113
});
114114
]]></code>
115115
<css><![CDATA[
@@ -118,7 +118,7 @@ $( document ).on( "click", function( event ) {
118118
padding: 3px;
119119
background: #EEEEEE;
120120
}
121-
li.hilight {
121+
li.highlight {
122122
background: yellow;
123123
}
124124
]]></css>
@@ -134,7 +134,7 @@ $( document ).on( "click", function( event ) {
134134
<code><![CDATA[
135135
var listElements = $( "li" ).css( "color", "blue" );
136136
$( document ).on( "click", function( event ) {
137-
$( event.target ).closest( listElements ).toggleClass( "hilight" );
137+
$( event.target ).closest( listElements ).toggleClass( "highlight" );
138138
});
139139
]]></code>
140140
<css><![CDATA[
@@ -143,7 +143,7 @@ $( document ).on( "click", function( event ) {
143143
padding: 3px;
144144
background: #EEEEEE;
145145
}
146-
li.hilight {
146+
li.highlight {
147147
background: yellow;
148148
}
149149
]]></css>

0 commit comments

Comments
 (0)