Return to Snippet

Revision: 57847
at June 13, 2012 01:28 by chasecrawford


Initial Code
(function ($) {
Drupal.behaviors.YOURTHEMENAME = {
attach: function(context, settings) {

/*Add your js code here*/

}

};
})(jQuery);

Initial URL


Initial Description
Use this no-conflict wrapper instead of the default ready function in JQuery to initialize scripts in your Drupal 7 theme

Initial Title
Drupal 7 Theming: Initialize JQuery Script

Initial Tags
jquery, drupal

Initial Language
JavaScript