“Disabling” an HTML table with Javascript

后端 未结 6 1793
名媛妹妹
名媛妹妹 2021-02-08 10:01

I\'ve seen this done in a lot of sites recently, but can\'t seem to track one down. Essentially I want to \"disable\" an entire panel (that\'s in the form on an HTML table) whe

6条回答
  •  醉酒成梦
    2021-02-08 11:01

    Another way to do it would be using the opacity property.

    function disablePanel(id) {
       var panel = document.getElementById(id);
       var inputs = panel.querySelectorAll('input, button'); //anything else can go in here
       for (var i=0; i

提交回复
热议问题