weixin_33720956 2016-03-22 09:53 采纳率: 0%
浏览 63

禁用网页元素

How can I disable the whole webpage elements when a button is clicked to avoid unintended several click that causes many transactions?

Threads suggest to use a div so that when a button is clicked, the div will be put on top of the elements.

Is there other way to solve it aside from div overlay?

I am using JavaScript, JSP, JQuery, AJAX

  • 写回答

2条回答 默认 最新

  • weixin_33716941 2016-03-22 09:57
    关注

    You can use CSS pointer-event property, which will disable clicking of any control.

    Refer: https://developer.mozilla.org/en/docs/Web/CSS/pointer-events

    评论

报告相同问题?