Posted By:
Nitesh_Naveen
Posted On:
Wednesday, July 2, 2003 04:16 AM
Well... strange behaviour!!!
If it is any consolation, the actual value of the elements doesn't change, only the appearance changes. Tried to modify your function to
function disableForm(myForm) {
for(i=0;i alert("'"+myForm.elements[i].value+"'")
myForm.disabled=true;
for(i=0;i alert("'"+myForm.elements[i].value+"'")
}
to test it and the value seems to be right. So you can go with this without any actual problem. Well... you could also go for a crooked option of disabling all the elements in the form using the elements array as above instead of disabling the form itself!!!
PS: Would be a lot easier if you format the code properly. That's why you are given a preview option before post.