If you are a Magento developer, you need to use jQuery library or custom JavaScript to Customize user interface of your magento web store. Magento already included the Prototype JavaScript library. To access the Prototype library, it uses ‘$‘ as shorthand.
Magento also allows to integrate jQuery library but jQuery also uses ‘$‘ to access itself. So there will conflict in the global JavaScript namespace of the web browser. For this reason all of your javascript function can not work properly.
Fortunately jQuery have a new shorthand to access itself which is – “jQuery.noConflict();“. When you use this on your javascript file in magento then all of your javascript function will run properly in Magento.
So you should define in your javaScript file the following code at first:
var $j = jQuery.noConflict();
Then you can use ‘$j‘ as shorthand of jQuery. Tahts all..




