When jQuery is included on a page, it stores off whatever value exists in $ before setting the value of $. Using the noConflict() method restores whatever value existed in $ and sets jQuery to exist under a different variable of your choosing.
Below is an example of including noConflict() at the end of the latest minified jQuery file:
Now we can use our version of jQuery, using myQuery instead of $:
myQuery('#elementid').css('border', '1px solid black');
Leave a comment