Where use dollar sign and where jQuery name?
jQuery(window).ready(function() {
$(window).ready(function() {
Where use dollar sign and where jQuery name?
jQuery(window).ready(function() {
$(window).ready(function() {
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…
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.