How about looping through all the input tags on the page in one easy function?
Code:
function disableAll(){
for(var i = 0;i < document.getElementsByTagName("input").length;i++){
document.getElementsByTagName("input")[i].disabled = true;
}
}
Basically loop through the entire count of inputs, setting each one to disabled. Be aware this also will disable submit inputs and that disabled inputs do not get passed in the form collection.
-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
With enough resources, time, and coffee, anything is possible.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.