Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过jQuery将默认文本添加到内联Ajax注释WP插件中_Jquery_Ajax_Wordpress_Comments - Fatal编程技术网

通过jQuery将默认文本添加到内联Ajax注释WP插件中

通过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

我想在我的wordpress站点的评论中添加一个默认文本。问题是插件不允许:

<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');};
});