Title: Using JQuery in wordpress
Last modified: August 19, 2016

---

# Using JQuery in wordpress

 *  [eastsidedev](https://wordpress.org/support/users/eastsidedev/)
 * (@eastsidedev)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/using-jquery-in-wordpress/)
 * I would like to build a page, with multiple areas. If I move the mouse over to
   area1, I would like to load some text in area2 and an image in area3. I was advised
   that JQuery would be the best way to do this. So far, I gathered that I need 
   to include the following in the head section of the header.php file (from my 
   theme):
 * <?php
    wp_enqueue_script(‘jquery’); ?>
 * If this not wordpress, I would do something like this:
 * $(document).ready(function(){
    $(‘#area1’).moveover(function(){ $(‘#area2’).html(‘
   new text goes here.’); $(‘#area3’).html(‘<img src=”img.jpg”>’); }); });
 * HTML code:
 * <div id=”area1″>Area1</div>
    <div id=”area2″>Area2</div> <div id=”area3″>Area3
   </div>
 * But this is wordpress. What do I include on my page?

Viewing 1 replies (of 1 total)

 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/using-jquery-in-wordpress/#post-1260269)
 * See the **Note** here.
    [http://codex.wordpress.org/Function_Reference/wp_enqueue_script#Default_scripts_included_with_WordPress](http://codex.wordpress.org/Function_Reference/wp_enqueue_script#Default_scripts_included_with_WordPress)

Viewing 1 replies (of 1 total)

The topic ‘Using JQuery in wordpress’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/using-jquery-in-wordpress/#post-1260269)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
