急求哪位大神帮我解决这个问题,其实挺容易,只是我不熟悉
<script type="text/javascript">
function setVal() {
delCookie("BBSTitle");
addCookie("BBSTitle", document.getElementById("txt_title").value, 1);
delCookie("BBSCon");
addCookie("BBSCon", document.getElementById("content1").value, 1)
}
</script>
<asp:TextBox runat="server" ID="txt_title" style=" width:550px; border:1px solid #CCC; height:18px; padding-left:3px; padding-top:5px; font-family:新宋体; color:#999; font-weight:bold;"></asp:TextBox>
<asp:Label ID="Label1" runat="server" Text="">
<textarea id="content1" onblur="setVal(obj)" runat="server" cols="100" rows="8" style="width:780px;height:420px;visibility:hidden;" ></textarea>
</asp:Label>
我可以获得BBSTitle的值,但是BBSCon一直为空。这是为什么?