I'm wondering if it's possible for a script to enable/disable all input elements on the page with some sort of toggle button.
I googled it but didn't find anything too useful except for this:
http://www.codetoad.com/javascript/enable_disable_form_element.asp but I'm not sure how to edit it for the toggle.
Something like this would work:
var inputs=document.getElementsByTagName('input'); for(i=0;i<inputs.length;i++){ inputs[i].disabled=true; }
1.4m articles
1.4m replys
5 comments
57.0k users