Title: load jquery
Last modified: August 19, 2016

---

# load jquery

 *  [IM_natascha](https://wordpress.org/support/users/im_natascha/)
 * (@im_natascha)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/load-jquery/)
 * Hey guys,
 * I want to alter my registration form and need some javascript for it. I would
   like to use the jquery-library, but cannot manage to include it via wordpress-
   functions.
 * As in [WordPress Function Reference – wp_enqueue_script](http://codex.wordpress.org/Function_Reference/wp_enqueue_script)
   I use the `init`-Hook, after trying `get_header`, `wp_head`, `wp_enqueue_scripts`
   but neither of them worked.
 *     ```
       add_action('init', array(&$this, 'add_jquery'));
       function add_jquery(){ wp_enqueue_script( 'jquery' ); }
       ```
   
 * What am I missing?

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/load-jquery/#post-1827050)
 * Why are you trying to re-load jQuery?
 *  Thread Starter [IM_natascha](https://wordpress.org/support/users/im_natascha/)
 * (@im_natascha)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/load-jquery/#post-1827250)
 * Funny – if it would have been loaded, my test should have worked but didn’t. 
   So I thought, I needed to load jQuery.
 * As my function didn’t work, I hardcoded the import of jQuery.
    I tested it right
   now – without my hardcoded jQuery-Import my Script does not work, so jQuery is
   most likly not imported. I even searched the html-code, but as expected didn’t
   find anything about jQuery. Maybe the jQuery-Lib is not loaded for the registration
   page.
 *  Thread Starter [IM_natascha](https://wordpress.org/support/users/im_natascha/)
 * (@im_natascha)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/load-jquery/#post-1827271)
 * Is there anyone who knows a solution?

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

The topic ‘load jquery’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [IM_natascha](https://wordpress.org/support/users/im_natascha/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/load-jquery/#post-1827271)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
