61,112
社区成员
发帖
与我相关
我的任务
分享
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div id="htm"><input type="text" value="11"/></div>
<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Height="264px" Width="576px"></asp:TextBox>
<input id="Button1" type="button" value="获取内容" onClick="aaa()" />
<script>
function aaa()
{
var content = document.getElementById("htm").innerHTML;
document.getElementById('TextBox1').value=content;
}
</script>
</form>
</body>
</html>