loading jqueryUI dialog() function on WordPress page loading jqueryUI dialog() function on WordPress page wordpress wordpress

loading jqueryUI dialog() function on WordPress page


it's only a jquery conflict, try this:

jQuery(document).ready(function() {    jQuery( "#dialog" ).dialog();});

you can use the jquery noConflict function if you want to use the jquery object as a $ sign, just put this line before all the jquery code:

var $ = jQuery.noConflict();

If you want it to Popup on click event so you can use:

var $ = jQuery.noConflict();$(document).ready(function() {        $('.the_button').click(function(){             $( "#dialog" ).dialog();    });    });