I'm tryng to run a simple script for an accordion button on Drupal 7.
I had the script tested on a local machine using module "Display suite" allowing me to add custom javascript inside drupal content, and it ran smoothly.
Now I won't be able to use the module on my server so I put the script inside my custom theme, inside the site/all/themes/my_theme/js where a default "script.js" file already loading on all my pages exists, but the script doesn't work any more (the one for my button, the file script.js loads fine).
I'm trying to find a solution using the drupal doc (digging into the drupal_add_js() for now), but as a javascript noob it would greatly help to understand why and how drupal proceeds a script "inside" content differently from external scripts.
Thanks !