Error: TypeError: $(…).dialog is not a function

后端 未结 7 1654
半阙折子戏
半阙折子戏 2020-11-27 06:29

I am having an issue getting a dialog to work as basic functionality. Here is my jQuery source imports:



        
7条回答
  •  离开以前
    2020-11-27 07:13

    Be sure to insert full version of jQuery UI. Also you should init the dialog first:

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

提交回复
热议问题