Created
February 19, 2014 18:46
-
-
Save Greg-Boggs/9098754 to your computer and use it in GitHub Desktop.
Inline jquery in Drupal 7 dropped into a template.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
drupal_add_js('(function($) {$(document).ready(function() { | |
$("body").click(function() { | |
alert("Hello World"); | |
}); | |
});}(jQuery));', 'inline'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment