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
Post a Comment