jquery - $(...).dialog is not a function while opening popup on button click event -


already got answer this. when workout got error on console.log(). don't know issue. here jsfiddle link jsfiddlelink

this html code.i have created 1 button open dialog , 1 div popup dialog.

<button id="opener">cick open</button> <div id="dialog1" title="dialog title" hidden="hidden">dialog opened</div> 

this script trigger popup on clicking button

$(document).ready(function()  {    $( "#dialog1" ).dialog(    {     autoopen: false    });     $("#opener").click(function()    {     $("#dialog1").dialog('open');    }); }); 


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -