Javascript modification?
I have 3 drop downs and I'm using this script to make them readonly and not,
if (event.value == "")
{
this.getField("TranChec").readonly = true;
this.getField("Tran1Htb").readonly = true;
this.getField("width").readonly = true;
this.getField("TranChec").value = "Off";
this.resetForm(["Text2bbb","Text22b"]);
}
if (event.value == "1")
{
this.getField("TranChec").readonly = false;
this.getField("Tran1Htb").readonly = false;
this.getField("width").readonly = false;
}
else if (event.value == "2")
{
this.getField("TranChec").readonly = false;
this.getField("Tran1Htb").readonly = false;
this.getField("width").readonly = false;
}
//the script goes up to 50.
What I would like to do is to eliminate all this script because at times I have to enter a number above 50 in the first drop down. At the moment when I enter a number higher than 50 the other two drop downs remain readonly. So, I'd like to be able to enter any number and the other two drop downs will become accessible and will become readonly on reset. Can someone help me with this problem and tell me how to modify this script? Thanks guys.
