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