2011-06-27 112 views
0

您好我havce嘗試這樣做:JhtmlArea - 設置HTML內容

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

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

這不工作!我能怎麼做 ??謝謝!!

回答

-1

是的,這有無窮的解決方案...給我們更多的細節。我的兩個猜測:

Are you including jQuery and the plugin js file?

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