在第一个文本框输入,在第11,22,33文本框显示同样
也就是在 标题1中 输入123,分别在标题11标题22标题33 里面显示同样123
标题1:<asp:TextBox ID="TextBox1" runat="server" Width="470px"></asp:TextBox>
标题11:<asp:TextBox ID="TextBox2" runat="server" Width="470px"></asp:TextBox>
标题22:<asp:TextBox ID="TextBox3" runat="server" Width="470px"></asp:TextBox>
标题33:<asp:TextBox ID="TextBox4" runat="server" Width="470px"></asp:TextBox>
vs 2008 c# 制作
------解决思路----------------------
knockout.js可以实现你的需求
------解决思路----------------------
<script type="text/javascript" language="javascript">
function OnTextChange() {
var titleText = document.getElementById('TextBox1');
var title1 = document.getElementById('TextBox2');
var title2 = document.getElementById('TextBox3');
var title3 = document.getElementById('TextBox4');
title1.value = titleText.value;
title2.value = titleText.value;
title3.value = titleText.value;
}
</script>
标题1:<asp:TextBox ID="TextBox1" runat="server" Width="470px" onkeyup="OnTextChange();"></asp:TextBox><br />