Title: Uncaught TypeError: undefined is not a function.
Last modified: August 22, 2016

---

# Uncaught TypeError: undefined is not a function.

 *  Anonymous User 13716511
 * (@anonymized-13716511)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/uncaught-typeerror-undefined-is-not-a-function-9/)
 * I’ve installed the plugin but when I try and run it, it doesn’t work and in the
   console I see the error:
    jQuery(document).ready(function($){ $( “#dialog” ).
   dialog(); }); Uncaught TypeError: undefined is not a function.
 * How do I fix this?
 * [https://wordpress.org/plugins/jquery-ui-widgets/](https://wordpress.org/plugins/jquery-ui-widgets/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * (@dgwyer)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/uncaught-typeerror-undefined-is-not-a-function-9/#post-5562840)
 * I just tried adding a dialog box without errors. I would say the cause is probably
   a jQuery code conflict somewhere.
 * You can try disabling all other plugins, reverting your theme to a default WordPress
   theme and making sure WordPress is up-to-date.
 * Also, make sure you have the correct jQuery code and HTML code added.
 * Add this to the jQuery box at the top of plugin settings:
 * `jQuery(document).ready(function($) { $( "#dialog" ).dialog(); });`
 * Add this HTML to any page:
 *     ```
       <div id="dialog" title="Basic dialog">
         <p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
       </div>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Uncaught TypeError: undefined is not a function.’ is closed to new replies.

 * ![](https://ps.w.org/jquery-ui-widgets/assets/icon.svg?rev=1430096)
 * [jQuery UI Widgets](https://wordpress.org/plugins/jquery-ui-widgets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-ui-widgets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-ui-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-ui-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-ui-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-ui-widgets/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/uncaught-typeerror-undefined-is-not-a-function-9/#post-5562840)
 * Status: not resolved