To use jQuery in drupal 7 custom hook.
function hook_add_html_head() {
drupal_add_js(" js file path");
}
This gives the functionality as we can use the $ sign in js file.
If we only use drupal_add_js() then we use jQuery instead of $.
To know details :- Click Here
function hook_add_html_head() {
drupal_add_js(" js file path");
}
This gives the functionality as we can use the $ sign in js file.
If we only use drupal_add_js() then we use jQuery instead of $.
To know details :- Click Here
Comments
Post a Comment