January 7th, 2011 Just a quickie that combines the $(fn) method of calling a function when the DOM is ready, with an anonymous function that ensures that $ refers to jQuery : (function($) { $(function () { // your code to fire when the DOM is ready }); })(jQuery); OSS (183) javascript (5) jquery (1) Share Post Twitter Facebook Google+ Martin Andrews {Finance, Software, AI} entrepreneur, living in Singapore with my family. ← Previous Next →