Search code examples
wordpressjquerypluginsthickbox

How to use jQuery inside a WP thickbox


I'm creating a Wordpress plugin wich adds a metabox to post edit page. In this metabox there is a link to open a page in a native thickbox (ajax content and NOT into iframe)

In this opened content I would like to use jQuery of 'parent' page (WP admin page) but I got a "jQuery is undefined"...

Any idea ?

thank's :)


Solution

  • Try this

    var $j = jQuery.noConflict();
    

    ...and $j is your jQuery object