/ Published in: JavaScript
![](/img/icon_sav.png?v3)
Use this no-conflict wrapper instead of the default ready function in JQuery to initialize scripts in your Drupal 7 theme
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
(function ($) { Drupal.behaviors.YOURTHEMENAME = { attach: function(context, settings) { /*Add your js code here*/ } }; })(jQuery);
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)