jQuery in WordPress

I am currently in the middle of coding my first plugin for WordPress when I came across my first stumbling block…
Why doesn’t my jQuery code work in the admin area of WordPress??

After some probing on Google, the answer was revealed to me. Basically WordPress doesn’t use “$()” for jQuery, that’s reserved for ProtoType, which is also bundled with WordPress. Instead you have to use “jQuery(‘field’).” in order to get it working.

This article explains it in more detail.

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>