I am using a theme which has lots of custom widgets in a widgets.php file. I need to use jQuery and a custom script for 2 of these widgets which will load on the home page.
wp_enqueue_script('jquery'); on the header.php file before the wp_head function. And I am adding the custom script below the wp_head function. However, nothing works when I load the page. If I place the jquery file and the custom script inside each or both the widgets, it works on the first widget but not on the second one. Can some one please tell me how to get this working?