JhtmlArea - 设置html内容

时间:2011-06-27 12:42:50

标签: jquery jhtmlarea

您好我试过这个:

$(function(){
   var descr = $("#area").htmlarea();
});

$("#some_button").click(function(){
  descr.pasteHTML("some text");
});

这不起作用!我能怎么做 ?? THX !!

1 个答案:

答案 0 :(得分:-1)

是的,这有无穷无尽的解决方案......给我们更多细节。我的两个猜测:

Are you including jQuery and the plugin js file?

Try wrapping all your code around the $(function(){

相关问题