I\'m writing my own Drupal 7 module, and like to use JQuery in it.
$(\'#field\').toggle();
But I\'m getting this error:
TypeErr
You can create the separate file for js and than add js file using the following:
drupal_add_js('path', 'module_name');