0
您好我havce嘗試這樣做:JhtmlArea - 設置HTML內容
$(function(){
var descr = $("#area").htmlarea();
});
$("#some_button").click(function(){
descr.pasteHTML("some text");
});
這不工作!我能怎麼做 ??謝謝!!
您好我havce嘗試這樣做:JhtmlArea - 設置HTML內容
$(function(){
var descr = $("#area").htmlarea();
});
$("#some_button").click(function(){
descr.pasteHTML("some text");
});
這不工作!我能怎麼做 ??謝謝!!
是的,這有無窮的解決方案...給我們更多的細節。我的兩個猜測:
Are you including jQuery and the plugin js file?
Try wrapping all your code around the $(function(){