3 ms·
I use the $ sigil to differentiate between variables that are DOM elements and variables that are jQuery-wrapped DOM elements.
by techiferous 15y ago
I use the $ sigil to differentiate between variables that are DOM elements and variables that are jQuery-wrapped DOM elements.
- SpiralLab 15y agoSame here. var _this = this; //vanilla var $this = $(this); //jQuery Though, I have encountered people who are really against the $var for stylistic reasons - so ymmv.