How do I add a specific javascript to a specific node in drupal 7? Right now i add my .js javascript via the "javascript librairies" module. But this adds the .js to all nodes. I want to have myjavascript1.js enabled for node 1 and myjavascript2.je available for node 2?
Is there a way to acheive that? DO I have to make my own module?
You can create node--[nid].tpl.php file for specific node id and after that you can use your specific js file for specific node id.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With