I am using the follwoing code to try and insert data into 2 text fields if a checkbox is "checked" otherwise the fields are blank, but i do not seem to be able to find the correct syntax to make it work ?
Could anyone please help
Regards
Paul
Code:
<script language="JavaScript">
function showVal(){
if (document.frmDesignDetails.chkDA.unchecked == True){
document.frmDesignDetails.txtDABy.value = ""
document.frmDesignDetails.txtDAD.value = ""
}
else{
document.frmDesignDetails.txtDABy.value = "<%=ValImage%>"
document.frmDesignDetails.txtDAD.value = "<%=strUKDate%>"
}
}
</script>
Could anyone please help
Regards
Paul