• Anonymous User 13716511

    (@anonymized-13716511)


    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://ww.wp.xz.cn/plugins/jquery-ui-widgets/

Viewing 1 replies (of 1 total)
  • Plugin Author David Gwyer

    (@dgwyer)

    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.