html Modal popup

后端 未结 6 1450
别跟我提以往
别跟我提以往 2020-12-03 08:05

How to make a simple modal popup for the following code.And on click on the background the modal popup should not disappear.




        
6条回答
  •  情话喂你
    2020-12-03 08:09

    jQueryUI has a modal dialog plugin. It won't release control simply by clicking the background, as you requested: http://jqueryui.com/demos/dialog/#modal

    Show Modal Box
    
    

    --

    $(".showModal").click(function(e){
      e.preventDefault();
      $("#modalContents").dialog({bgiframe: true, height: 140, modal: true});
    });
    

提交回复
热议问题