jQuery vs dollar sign

jQuery vs dollar sign
0

#1

Where use dollar sign and where jQuery name?

jQuery(window).ready(function() {

$(window).ready(function() {

#2

Note: The jQuery library exposes its methods and properties via two properties of the window object called jQuery and $. $ is simply an alias for jQuery and it’s often employed because it’s shorter and faster to write.

quote from the jquery docs…


#3

Take a look at

Avoiding Conflicts with Other Libraries

for more information.


#4

for example within Wordpress to avoid conflicts it is required to use jQuery instead of $
as this version of jQuery comes with compatibility mode by default. the reason is that other JavaScript libraries that use the dollar sign also, like MooTools or Prototype.