Hi!

I need to insert some javascript code into a basic page (Drupal 7), for example for show/hide some divs with jquery. Where i have to add the code?

Comments

mandrake88’s picture

bump

nagarajanl’s picture

The best practice is create a separate javascript file called as custom.js and include the file from your template.php(or from your custom module using drupal_add_js). You can create as much of js files as per your business operations and they can be aggregated by using javascript aggregation at the time of production.