码迷,mamicode.com
首页 > Web开发 > 详细

js给kindeditor添加值

时间:2017-03-23 12:41:45      阅读:157      评论:0      收藏:0      [点我收藏+]

标签:style   get   text   hidden   cli   textarea   用户   this   content   

需求:在点击回复按钮时,在kindeditor中添加被回复的用户昵称

html:
<textarea name="content" id="mycontent" style="width: 100%;height:200px;visibility:hidden;"></textarea>

js:(主要是红色部分)
$("a[name=‘DoReply‘]").click(function(){
var nick = $(this).parent().prev().children("span[class=‘GetNick‘]").text();
KindEditor.html("#mycontent",nick);

});

js给kindeditor添加值

标签:style   get   text   hidden   cli   textarea   用户   this   content   

原文地址:http://www.cnblogs.com/wumingxiaoyao/p/6604029.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!