How to display Custom Dialog box on button click
问题 I want my custom dialog box to load on button click but that's not happening.I am using the dialog box on this webpage. http://jqueryui.com/dialog/#default here is my code.. function click(){ $(function() { $( "#dialog" ).dialog({ width : 250, height: 180, modal : true }); }); } <div> <button type="button" id="put" onclick="click()">Insert data</button> </div> The above code is not working..Please help... 回答1: It works fine there is prooflink HTML: <div id="dialog"> <p>THIS IS DIALOG!!!</p> <