通过jQuery将默认文本添加到内联Ajax注释WP插件中
我想在我的wordpress站点的评论中添加一个默认文本。问题是插件不允许:通过jQuery将默认文本添加到内联Ajax注释WP插件中,jquery,ajax,wordpress,comments,Jquery,Ajax,Wordpress,Comments,我想在我的wordpress站点的评论中添加一个默认文本。问题是插件不允许: <textarea placeholder="Press enter to submit comment…" tabindex="4" id="comment" name="comment" class="inline-comments-auto-expand submit-on-enter"></textarea> 我不给你插件代码,希望这不是一个问题 谢谢你的帮助 试试看 $'commen
<textarea placeholder="Press enter to submit comment…" tabindex="4" id="comment" name="comment" class="inline-comments-auto-expand submit-on-enter"></textarea>
我不给你插件代码,希望这不是一个问题
谢谢你的帮助 试试看
$'comment'.html'my new text'
这应该行得通,因为要将文本放在文本区域中,它需要在标记之间移动。它不像Assn输入那样使用属性Val=
$(function () {
$('#Change').bind("click", '#Change', Change);
function Change() {$('#comment').text('My new text');};
});