Title: jQuery and WordPress Theme/Plugin Development
Last modified: August 19, 2016

---

# jQuery and WordPress Theme/Plugin Development

 *  [Stephen Yeargin](https://wordpress.org/support/users/yearginsm/)
 * (@yearginsm)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/jquery-and-wordpress-themeplugin-development/)
 * After toying around with Prototype, I decided to take a look at jQuery and in
   particular the jQuery Validation plugin:
 * [http://docs.jquery.com/Plugins/Validation](http://docs.jquery.com/Plugins/Validation)
 * I have hit a snag with loading the built-in version of jQuery using `wp_enqueue_script('
   jquery')`. The `$()` functions return “property does not exist” errors. I noticed
   in the header of the Admin pages that they make a direct call to `jQuery()` to
   work with the dashboard feeds.
 * My workaround so far has been to just load in a vanilla version of `jquery.js`,
   but I am curious if there is a general guideline for using jQuery in WordPress
   plugins or themes that would differ from the native documentation and tutorials.
 * Page in question: [http://stephenyeargin.com/contact/](http://stephenyeargin.com/contact/)
 * Other references:
    [http://codex.wordpress.org/Function_Reference/wp_enqueue_script](http://codex.wordpress.org/Function_Reference/wp_enqueue_script)

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

 *  [nickohrn](https://wordpress.org/support/users/nickohrn/)
 * (@nickohrn)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/jquery-and-wordpress-themeplugin-development/#post-747305)
 * You should use the jQuery() function as opposed to the $() function alias. I 
   believe that WordPress goes ahead and calls the no conflict function to restore
   the $ alias to whatever it was and then reverts to using the jQuery() function.
 *  Thread Starter [Stephen Yeargin](https://wordpress.org/support/users/yearginsm/)
 * (@yearginsm)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/jquery-and-wordpress-themeplugin-development/#post-747311)
 * That appears to be the fix. I suppose all is well in the interest of playing 
   nice with other libraries.
 * [http://docs.jquery.com/Using_jQuery_with_Other_Libraries](http://docs.jquery.com/Using_jQuery_with_Other_Libraries)
 * Thanks!

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

The topic ‘jQuery and WordPress Theme/Plugin Development’ is closed to new replies.

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Stephen Yeargin](https://wordpress.org/support/users/yearginsm/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/jquery-and-wordpress-themeplugin-development/#post-747311)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
