<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript">
function FillBilling(f) {
if(f.billingtoo.checked == true) {
f.billingname.value = f.shippingname.value;
f.billingcity.value = f.shippingcity.value;
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<b>Mailing Address</b>
<br><br>
Name:
<asp:TextBox runat="server" ID="shippingname" name="shippingname" />
<br>
City:
<asp:TextBox runat="server" ID="shippingcity" name="shippingcity" />
<br>
<asp:CheckBox runat="server" ID="billingtoo" name="billingtoo" onclick="FillBilling(this.form)" />
<br />
Name:
<asp:TextBox ID="billingname" runat="server" name="billingname" />
<br>
City:
<asp:TextBox runat="server" id="billingcity" name="billingcity" />
</div>
</form>
</body>
</html>
0 comments:
Post a Comment