I have check boxes I want to have a for loop that it will disable any check box that is in the form
i don’t want to give array names to them cause maybe sometimes I have to insert another checkboxes I want to automatically disable the new one too by this for loop
is it possible writing an if statement that when the type is checkbox disable it?
if it is impossible please tell me another solutions
Thanks in Advance
function useraccess()
{
document.getElementById('frag3').disabled=true;
document.getElementById('stream4').disabled=true;
document.getElementById('stream5').disabled=true;
}
Try this: