Title: Uncaught TypeError: jQuery(&#8230;).dialog is not a function
Last modified: August 31, 2016

---

# Uncaught TypeError: jQuery(…).dialog is not a function

 *  Resolved [verenar](https://wordpress.org/support/users/verenar/)
 * (@verenar)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-jquerydialog-is-not-a-function/)
 * Hi,
 * when I active the plugin, all Javascript does not work and I get the message
 * Uncaught TypeError: jQuery(…).dialog is not a function
 * The proplem occures here in the voter.js?ver=4.4.2:40 File
 *     ```
       jQuery(function() {
       	dialog = jQuery( "#aheadzen_voting_login" ).dialog({
       		autoOpen: false,
       		height: 350,
       		width: 350,
       		modal: true,
       		open: function() {
                   jQuery('.ui-widget-overlay').bind('click', function() {
                       jQuery('#aheadzen_voting_login').dialog('close');
                   })
               },
       		close: function() {
       			//alert('CLOSE');
       		}
       	});
       	jQuery( ".aheadzen_voting_add" ).click(function() {
       		jQuery( "#aheadzen_voting_login" ).dialog( "open" );
       	});
       });
       ```
   
 * Thank you!
 * [https://wordpress.org/plugins/voter-plugin/](https://wordpress.org/plugins/voter-plugin/)

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

 *  Plugin Author [aheadzen](https://wordpress.org/support/users/aheadzen/)
 * (@aheadzen)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-jquerydialog-is-not-a-function/#post-7181204)
 * Hi there,
    It may be possibility that the jquery-ui may be disabled from voter
   plugin settings. Or any thing else because We cannot find exact problem. Then
   also we have change js include settings so it may solved your problem. If still
   have problem, please share your site url for better understanding. Thanks
 *  [performadigital](https://wordpress.org/support/users/performadigital/)
 * (@performadigital)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-jquerydialog-is-not-a-function/#post-7181293)
 * Add this to your themes functions.php file. It will use the built in jQuery UI
   Dialog script from WordPress core:
 *     ```
       function add_jquerydialog_js() {
           wp_enqueue_script( 'jquery-ui-dialog' );
       }
       add_action( 'wp_enqueue_scripts', 'add_jquerydialog_js' );
       ```
   
 *  Thread Starter [verenar](https://wordpress.org/support/users/verenar/)
 * (@verenar)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-jquerydialog-is-not-a-function/#post-7181302)
 * Its working now, thank you very much. 🙂 🙂

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

The topic ‘Uncaught TypeError: jQuery(…).dialog is not a function’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/voter-plugin_848b95.svg)
 * [Voter Plugin](https://wordpress.org/plugins/voter-plugin/)
 * [Support Threads](https://wordpress.org/support/plugin/voter-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/voter-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/voter-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/voter-plugin/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [verenar](https://wordpress.org/support/users/verenar/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-jquerydialog-is-not-a-function/#post-7181302)
 * Status: resolved