Skip to main content
5 events
when toggle format what by license comment
Jan 30, 2014 at 21:15 comment added Jason Gray This answer is partially correct in that this is one way to do it. What you should do if you prefer to use $ instead of jQuery is wrap your code in (function($){ $(document).ready(...); })(jQuery);
Mar 8, 2012 at 0:50 history edited Clive CC BY-SA 3.0
code formatting
Aug 21, 2011 at 20:35 comment added Mujtaba Haider this code is inside the function 'drupal_add_js('your jQuery code','inline');' so this code wouldn't generate any error.
Aug 21, 2011 at 20:17 comment added enchance I use the .info file but your answer is interesting. So the code above is placed inside a PHP file...which PHP file? Wouldn't this generate errors since it's using jQuery syntax?
Aug 21, 2011 at 20:04 history answered Mujtaba Haider CC BY-SA 3.0