Disabling all the Page Control through jQuery

后端 未结 4 788
有刺的猬
有刺的猬 2021-01-26 16:29

I am working on asp.net and c#.

I am using lots of ASP and HTML controls on the page and in some cases all the controls gets disabled. Some of the used Controls are:

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-26 17:12

    You can use a below code for this purpose:

    js on click:

    $('body').append('
    ');

    once done:

    $(".noclick").remove();
    

    css:

    .noclick {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9999; /* or maybe higher */
        background-color: transparent;
    }
    

提交回复
热议问题