I want to change the label on the fly (when the user click the
checkbox), but my attempt
InputForm.lataL bl.value = "LATA * "; didn't work. Here's my code, any
ideas?
thanks !!!
<html>
<script type="text/javascript">
function ig_onchange()
{ if (InputForm.ig.c hecked == true)
{ InputForm.btn.v alue = "Populate";
InputForm.lataL bl.value = "LATA * "; //DOES NOT WORK!!!
}
else
{
InputForm.btn.v alue = "Validate";
}
}
</script>
<body>
<form name="InputForm ">
<P><input type="checkbox" name="ig" onclick="ig_onc hange()">
<P><label for="lataLbl">L ATA</label>
<P><input type="button" name="btn" value="Validate ">
</form>
</body>
</html>
checkbox), but my attempt
InputForm.lataL bl.value = "LATA * "; didn't work. Here's my code, any
ideas?
thanks !!!
<html>
<script type="text/javascript">
function ig_onchange()
{ if (InputForm.ig.c hecked == true)
{ InputForm.btn.v alue = "Populate";
InputForm.lataL bl.value = "LATA * "; //DOES NOT WORK!!!
}
else
{
InputForm.btn.v alue = "Validate";
}
}
</script>
<body>
<form name="InputForm ">
<P><input type="checkbox" name="ig" onclick="ig_onc hange()">
<P><label for="lataLbl">L ATA</label>
<P><input type="button" name="btn" value="Validate ">
</form>
</body>
</html>
Comment