Anyway in Magento I need to use a jquery slider, but Magento by default use prototype as js framework. Here I need to use a noConflict way to use jquery in Magento. Also this technique is working any site dealing with two js framework.
Normally jquery is using $ sign but in noConflict mode, we need to define new jquery sing. As in my situation I am using $j instead of $ for jquery.
var $j = jQuery.noConflict();
// Do something with jQuery
// Do something with another library's $()
$("content").style.display = 'none';
This is the easiest way for me to using jquery no conflict mode. Thought there is some other ways to do same, but I am happy with this 🙂
Hope you will enjoy your jquery no conflict with other js framework.