hi guys!! hope you cam help me????
<input type="text" name="txtSerial No" id= "txtSerialN o" maxlength="20">
varType = document.crmFor m.txtType.value ;
if (varType == "SERIAL") {
document.crmFor m.txtSerialNo.v alue.length = "15";
} else if (varType == "MIN"){
document.crmFor m.txtSerialNo.l ength = '10';
}
But the txtSerialNo remains in its original length..
im wat to set the maxlength of the txtSerial defending in the condition in if statement..
Hope you can help me...thanks!
<input type="text" name="txtSerial No" id= "txtSerialN o" maxlength="20">
varType = document.crmFor m.txtType.value ;
if (varType == "SERIAL") {
document.crmFor m.txtSerialNo.v alue.length = "15";
} else if (varType == "MIN"){
document.crmFor m.txtSerialNo.l ength = '10';
}
But the txtSerialNo remains in its original length..
im wat to set the maxlength of the txtSerial defending in the condition in if statement..
Hope you can help me...thanks!
Comment