How to add custom Jquery in drupal module? I have created a custom module in drupal 7. The module creates a form for user and store the  form's data into database. The module is working fine. But I want to add a custom jquery for the page. I searched Google and find the result for adding custom JQuery for theme not for modules. I guessed and add the following in my module's  info file

;scripts
scripts[] = js/test.js


Just alert a "hello" word while the module will load. But nothing is happened. Is this possible to add custom Jquery for a module or I am doing wrong? Please help.
There are several ways of adding JS to your module, you can check them here https://www.drupal.org/node/756722

Your attempt should work fine, just don't forget to clear the caches after editing module's .info file.

Cheers!