Not registered yet?
Register now! It is easy and done in 1 minute and gives you access to special discounts and much more!
scripts = somescript.js
Note that Drupal already include jQuery, jQuery UI and a bunch of other libraries so you don't, and shouldn't, add them yourself. Instead you should use drupal_add_library() or the #attached['library'] property.
The Working with CSS guide provides the information to add CSS to Drupal. Again, the techniques presented there apply to both themes and (custom) modules. With an exception: addition of style sheets from an .info files only works for a theme and not a module.
stylesheets[all] = somestylesheet.css
do I need to enable php filter? And where do I add the js. Is it the body section with script tag? like <script></script> I need a simple example to get started. Very basic. Pls
You can place your js file in your theme folder and add this js file to drupal by using drupal_add_js() in template.php preprocess functions.