1var jq = $.noConflict(); // avoid conflict with other frameworks also using the dollar sign
2jq(document).ready(function(){
3jq("#demo").text("Hello World!");
4});
5
1// Do something with the new jQuery
2dom.query( "div p" ).hide();
3
4// Do something with another library's $()
5$( "content" ).style.display = "none";
6
7// Do something with another version of jQuery
8jQuery( "div > p" ).hide();
9