Fast a button to disable all input page input boxes and drop-down box select the method

code show as below:

    Array.prototype.slice.call(document.getElementsByTagName('input')).map(i => i.disabled = true)
    Array.prototype.slice.call(document.getElementsByTagName('select')).map(i => i.disabled = true)

 Also, this method may be bulk edit values ​​of all the input boxes or drop-down box.

Guess you like

Origin www.cnblogs.com/liea/p/11391632.html