jQuery – Using $ with other JavaScript libraries

Although $ sounds native to jQuery alone, but there are other JavaScript libraries and frameworks as well that use $, one example is scriptaculous. But what if you want to use $ in your jQuery based code or plugin, $ sure is a very short shortcut. I will show you a nice little trick of how to do so. The trick involves writing all the code in a function and executing that function immediately: (function() { // put your code

Continue Reading