How to make jQuery dialog modal?

前端 未结 2 1728
抹茶落季
抹茶落季 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:38

    Read the documentation of JQuery Ui Dialog in: http://docs.jquery.com/UI/Dialog

    Exist a Option called Modal, here is some samples from doc:

    Initialize a dialog with the modal option specified.

    $( ".selector" ).dialog({ modal: true });
    

    Get or set the modal option, after init.

    //getter
    var modal = $( ".selector" ).dialog( "option", "modal" );
    //setter
    $( ".selector" ).dialog( "option", "modal", true );
    

提交回复
热议问题