Skip to content

Commit b772162

Browse files
Ellipsis753scottgonzalez
authored andcommitted
Selecting Elements: Remove reference to use of hungarian notation
Closes jquerygh-494
1 parent 2223335 commit b772162

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

page/using-jquery-core/selecting-elements.md

-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ jQuery doesn't cache elements for you. If you've made a selection that you might
9595
var divs = $( "div" );
9696
```
9797

98-
In the example above, the variable name begins with a dollar sign. Unlike in other languages, there's nothing special about the dollar sign in JavaScript – it's just another character. Here, it's used to indicate that the variable contains a jQuery object. This practice is merely convention, and is not mandatory.
99-
10098
Once the selection is stored in a variable, you can call jQuery methods on the variable just like you would have called them on the original selection.
10199

102100
A selection only fetches the elements that are on the page at the time the selection is made. If elements are added to the page later, you'll have to repeat the selection or otherwise add them to the selection stored in the variable. Stored selections don't magically update when the DOM changes.

0 commit comments

Comments
 (0)