CFwindow validation on Checkbox
I am trying to validate records based on the onclick event of a Checkbox or change event of a select option, for some reason this is not working in a cfwindow.
This is my form. can some please tell me what I did wrong here. The javascript is not even being called in a CFWINDOW.
<input type="checkbox" name="ccSameddress" value="shipsame" onclick="return sameinfo();">and below is my script:
<script language="JavaScript">
function sameinfo()
{
var d = document.cbfoundation;
if (d.chkSameddress.checked==true)
{
d.shipFName.value=d.bccFname.value;
d.shipLName.value=d.bccLname.value;
d.shipAddr1.value=d.bccAddr.value;
}
if (d.chkSameddress.checked==false){
d.shipFName.disabled=false;
d.shipLName.disabled=false;
d.shipAddr1.disabled=false;
}
}
</script>
