Skip to main content
6 events
when toggle format what by license comment
Oct 15, 2010 at 12:46 comment added bueltge +1 for jQuery(document).ready(function($){... mor infos about jquery and WordPress can you also read on my post: wpengineer.com/2028/small-tips-using-wordpress-and-jquery .
Oct 15, 2010 at 1:39 comment added EAMann Yes and no. They're both considered "standard" ways of doing it. One creates a singleton class that has $ defined locally. The other just defines a handler for the document's ready event and passes the jQuery object into the handler as $. If you're trying to hook on to the ready event, the second method is more widely used. If you need jQuery for any other purpose (to hook on to $.browser for example), you'd use a singleton class.
Oct 14, 2010 at 23:55 comment added BryanH ...but it isn't the standard way of doing an anonymous function. forum.jquery.com/topic/jquery-anonymous-function-calls
Oct 14, 2010 at 17:42 comment added fuxia +1: That is more readable than putting jQueryat the end.
Oct 14, 2010 at 15:45 vote accept Mild Fuzz
Oct 14, 2010 at 15:45
Oct 14, 2010 at 15:41 history answered EAMann CC BY-SA 2.5