Hey all,
I wish to disable all buttons on my page. I would like to do this without disabling all my 'INPUT' elements and without referencing their names as some of them change dynamically.
I got as far as:
Now, is there any way to isolate the 'type' attribute and only disable those with a 'type' of 'button'?
I wish to disable all buttons on my page. I would like to do this without disabling all my 'INPUT' elements and without referencing their names as some of them change dynamically.
I got as far as:
Code:
els = document.form1.getElementsByTagName("INPUT");
for (i=0; i<els.length; i++){
els(i).disabled=true;
}