首页 新闻 会员 周边

关于ubbEditor的一问题

0
悬赏园豆:30 [待解决问题]

我想做一个回复贴的页面,希望点击回复过后在textarea中的汉字消失,找一个clear或者直接var("")这种,试了很久没成功,我现在想到一方法是把这个框删了,再重新画一个?希望能有高手帮找个简单点的方法``

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication4.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<meta http-equiv="x-ua-compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="jquery-1.4.2.js" type="text/javascript"></script>
<script src="ubbEditor.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<div >
<ul id="ul1"></ul>
</div>
</form>

<textarea id="content" name="content" style="WIDTH: 200px; HEIGHT: 50px"></textarea>
<input id="Button1" type="button" value="回复" />
<script type="text/javascript">

var nEditor = new ubbEditor('content');
nEditor.tLang
= 'zh-cn';
nEditor.tInit(
'nEditor', '');
$(
"#Button1").click(function () {
$(
"#Button1").css("background", "red").val("点击回复后");
$(
"#ul1").append("<li>" + nEditor.tGetHTML() + "</li>");


})
</script>
</body>
</html>

 

mr.zhao的主页 mr.zhao | 菜鸟二级 | 园豆:215
提问于:2010-10-10 18:56
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册