Title: jQuery doesn&#8217;t work
Last modified: March 19, 2021

---

# jQuery doesn’t work

 *  Resolved [user0159](https://wordpress.org/support/users/user0159/)
 * (@user0159)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/jquery-doesnt-work-2/)
 * Hey there. I’m running WP 5.7
 * I’m trying to develop an application inside WordPress using jQuery and jQuery
   UI, so for this I’m using a child theme.
 * So I tried to add jQuery code everywhere: footer.php, header.php, functions.php
   with all the reccomendations I read in the internet: noConflict mode; wp_enqueue_script
   but it just doesn’t execute at all. Firebug doesn’t show any error.
 * Even basic code don’t work
 *     ```
       jQuery(document).ready(function(){
       		alert('test');
       	});
       ```
   
 * Thank you in advance!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 2 months ago](https://wordpress.org/support/topic/jquery-doesnt-work-2/#post-14209223)
 * Have you [enqueued jQuery](https://developer.wordpress.org/reference/functions/wp_enqueue_script/)
   in your theme’s functions.php?
 *  Thread Starter [user0159](https://wordpress.org/support/users/user0159/)
 * (@user0159)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/jquery-doesnt-work-2/#post-14210024)
 * Well, this line of code does work:
    `wp_enqueue_script( 'my-script', get_stylesheet_directory_uri().'/
   script.js', array('jquery'));`
 * I hope jQuery UI and AJAX won’t give me more headaches.
 * Thank you for your help.
    -  This reply was modified 5 years, 2 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘jQuery doesn’t work’ is closed to new replies.

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [jQuery UI](https://wordpress.org/support/topic-tag/jquery-ui/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 2 replies
 * 3 participants
 * Last reply from: [user0159](https://wordpress.org/support/users/user0159/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/jquery-doesnt-work-2/#post-14210024)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
