$.fn safe jquery code example
Example 1: jquery safely use $
(function($) {
// $ Works! You can test it with next line if you like
// console.log($);
})( jQuery );
Example 2: jquery noconflict
// Do something with the new jQuery
dom.query( "div p" ).hide();
// Do something with another library's $()
$( "content" ).style.display = "none";
// Do something with another version of jQuery
jQuery( "div > p" ).hide();