当我提到“P”时,我无法弄清楚这个 iv 浏览网络时的语法,它返回关于 PHP 的多个搜索
我想做的是用变量值填充 p 标签文本?
这是我的 Jquery
$('.FOS, .MF, .CW, .OO, .LL, .CO, .TAK, .FCS, .CO').mouseover(function(e) {
var tr = $(this).closest('tr');
var Comments = tr.find('.GeneralComments').text();
if (Comments != "") {
$('div#pop-up').show();
$('p').text == Comments;
} else {
$('div#pop-up').hide();
}
return false;
});
我试图将 Comments 中的值分配给 p.text 但它不起作用?
这是 p 所在的我的 div。
<div id="pop-up">
<h3>
Over all Notes</h3>
<p>
This is where i want the value from comments to appear?
</p>
</div>
如有任何帮助,我们将不胜感激。
最佳答案
关于javascript - 使用 Jquery 在 HTML 中填充 "p"标记,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11576116/