Monday, April 25, 2011

jQuery No Conflict

jQuery No Conflict need to be positioned after all jquery plugin has been included.
Because some plugin is still using $ in the code, therefore the noconflict will remove $ and only made jQuery or the variable assigned as jQuery function.
If you are mixing with Mootool, you should include jquery, jquery plugins, jquery noconflict, then only moo tool .

Example:
jquery/jquery-1.5.min.js
jquery/jquery-ui-1.8.9.custom.min.js
jquery/jquery.form.js
jquery/jquery.ui.datetime.min.js
jquery/jquery.noconflict.js"

Example of jquery.noconflict.js
---------------
$j = jQuery.noConflict();
---------------


No comments: