/ Published in: JavaScript
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);