日期:2014-05-17 浏览次数:20461 次
<script language="javascript" type="text/javascript">
//写正则验证输入的必须的int和double
function changetText(n) {
switch (n) {
case 1:
document.getElementById("TextBox6").value = document.getElementById("TextBox1").value;
break;
case 2:
document.getElementById("TextBox7").value = document.getElementById("TextBox2").value;
break;
case 3:
document.getElementById("TextBox8").value = document.getElementById("TextBox3").value;
break;
case 4:
document.getElementById("TextBox9").value = document.getElementById("TextBox4").value;
break;
case 5:
document.getElementById("TextBox10").value = document.getElementById("TextBox5").value;
// document.getElementById("Label1").value =10个值全加起来
break;
}
}
</script>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server" onblur="changetText(1)"></asp:TextBox>
<br />
<asp:TextBox ID="