Menu
Hi,
I have a checkbox in my form and this is the part of the code:
<INPUT type=”checkbox” name=”Same” value=”Yes” onclick=”DoCopy();”>Same as Above
and this at the top of the page:
<script language=”JavaScript”>
function DoCopy()
{
if (document.Form1.Same.checked=true)
{
document.Form1.ShippingAddress1.value=document.Form1.Address1.value;
}
}
</script>
The problem is: when I select the check box, it takes it and does the copy function fine, but I cannot deselect the check box afterwards. Could someone please tell me where the problem is?
Thanks in advance.