javascript - jQuery UI dialog open -


i'm trying open dialog window code. internet says use $("#dialog").dialog("open"); reason isn't working.

$( "#draggable" ).draggable({     connecttosortable: "#sortable",     helper: "clone",     revert: "invalid",     stop: function(event, ui) {       alert("hello world!");       $("dialog").dialog('open');     }   });   $( "ul, li" ).disableselection(); }); $(function() {   $("#dialog").dialog({     autoopen: false,     height: 200,     width: 150   }); }); 

i want open when user stops moving 1 of list items. alert occurs not dialog. know why?

you missed #

 $("#dialog").dialog('open'); 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -