How to make jQuery dialog modal?

前端 未结 2 1727
抹茶落季
抹茶落季 2020-12-20 15:38

I am using jQuery dialog in asp.net. It is working fine for me. The problem is when I open the dialog box, I can still work parent page functionality. I don\'t want that. Ju

2条回答
  •  执笔经年
    2020-12-20 16:16

    Use

    $('#uploadPic').dialog({
             autoOpen: false,
             modal: true,
             draggable: true,
             title: "Upload Picture",
             open: function(type, data) {
                 $(this).parent().appendTo("form");
             }
         });
     }
    

    I have just added the modal option to your sample.

提交回复
热议问题