trying to copy the info in housenumber to housenumber1 textbox wen i tick the checkbox.
[CODE]<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<head>
<title></title>
<script type=”text/javascript”>
//<![CDATA[
<!– Hide the script from non-script-friendly browsers
//Function for copy and paste of postal address to shipping address
function copypaste(){
if (document.form1.copypastebox.checked)
{
document.getElementById(“form1”).housenumber1.value = document.getElementById(“form1″).housenumber.value;
}
}
return;
// stop hiding the script –>
//]]>
</script>
</head>
<form id=”form1″ onsubmit=”return validate_form();”>
<label>House or Unit Number: <input id=”housenumber”class=”alphanumeric”></label><br>
<label for=”shipping”>Shipping Address </label><br>
<INPUT type=”checkbox” id=”copypastebox” onclick=”copypaste()”>
<label for=”copypaste”>Tick box if Postal Address and Shipping Address are the same. </label><br>
<label>House or Unit Number: <input id=”housenumber1″ class=”alphanumeric”></label><br>
</form>