时,这也可以在入门中描述。
<textarea class="cleditor" name="category_description" id="category_description" rows="3"></textarea>
$("#category_description").val('');
Textarea值不清楚!
尝试以下:
$('#category_description').val('');
它似乎正常。您确定jQuery已加载,并且确实在屏幕上而不是cleditor上看到了文本方面?
jsfiddle
如果您的屏幕上有Cleditor,则可能应该使用:
$('#category_description').cleditor().clear()
当您查看.cleditor(options) Method > cleditor Object > Methods