Title: Jquery init rrror
Last modified: September 3, 2016

---

# Jquery init rrror

 *  [congnt](https://wordpress.org/support/users/congnt/)
 * (@congnt)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/jquery-init-rrror/)
 * Got this error:
 * > TypeError: $ is not a function $(document).on(‘click’, ‘.rj_ot_upload_media’,
   > function() {
 *     ```
       /wp-content/plugins/optiontree-metabox-ui/js/metabox-ui.js?ver=4.1.5 (line 7, col 6)
       ```
   
 * Currently I using WR PageBuilder, WooCommerce, OptionTree, Custom Sidebars and
   after install MetaboxUI error happend.
 * I think you should change
 *     ```
       $ = jQuery.noConflict();
       $(document).ready(function(e) {
       ....
       });
       ```
   
 * in optiontree-metabox-ui/js/metabox-ui.js file to:
 *     ```
       (function ($) {
       ...
       })(jQuery);
       ```
   
 * I already fixed it by my self and everything work fine. Please update the plugin.

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

 *  Plugin Author [Rajilesh Panoli](https://wordpress.org/support/users/rajilesh/)
 * (@rajilesh)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/jquery-init-rrror/#post-7979212)
 * Hi [@congnt](https://wordpress.org/support/users/congnt/),
    Thanks for your fix.
   I have updated the code.
 *  Plugin Author [Rajilesh Panoli](https://wordpress.org/support/users/rajilesh/)
 * (@rajilesh)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/jquery-init-rrror/#post-7979213)
 * please re-download the file to see changes.

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

The topic ‘Jquery init rrror’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/optiontree-metabox-ui.svg)
 * [Metabox UI](https://wordpress.org/plugins/optiontree-metabox-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/optiontree-metabox-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/optiontree-metabox-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/optiontree-metabox-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/optiontree-metabox-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/optiontree-metabox-ui/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Rajilesh Panoli](https://wordpress.org/support/users/rajilesh/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/jquery-init-rrror/#post-7979213)