Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/449.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
Javascript 无法在表的悬停td元素上显示Popover_Javascript_Jquery_Html_Css_Twitter Bootstrap - Fatal编程技术网

Javascript 无法在表的悬停td元素上显示Popover

Javascript 无法在表的悬停td元素上显示Popover,javascript,jquery,html,css,twitter-bootstrap,Javascript,Jquery,Html,Css,Twitter Bootstrap,我正在使用下面的代码也找到了代码。你能帮我一下吗 <table> <tbody> <tr class="myrow1"> <td class="cpCode"> <span rel="replace">Need PopOver</span> </td> </tr> 我看到了你的小提琴,你错过了引导/jq

我正在使用下面的代码也找到了代码。你能帮我一下吗

<table>
  <tbody>
   <tr class="myrow1">                         
    <td class="cpCode">
     <span rel="replace">Need PopOver</span>
    </td>
   </tr>   

我看到了你的小提琴,你错过了引导/jquery文件,这里是一样的,它工作得很好

$(document).ready(function(){
    $('[rel="replace"]').popover({
          trigger: 'hover',
          placement : 'bottom', 
          html: 'true',                            
          content :'Hello' 
    });   
});

你能解释一下吗?我想你提供了错误的fiddleHello Siddharth,请检查现在更新的fiddleman你看不到popover,因为它是
top
对齐的,并且它正在隐藏,将它更改为
bottom
,然后看到magicIt是因为你没有在其中添加JQuery。检查。它正在工作你好,西德哈特,我能在小提琴这是我的小提琴它在小提琴中工作良好,但在代码中不工作。我已经在其他页面使用了popover,它工作得很好。下面是我如何创建td的$(此)。附加(“”+键+“”);td及其文本显示良好。但不是popover检查此链接以添加动态元素的popover我为此做了一个检查,您需要使用
popover的
选择器
选项,正如@NarendraCM提到的一些Naendra CM和Siddharth。现在工作!伟大的
$(document).ready(function(){
    $('[rel="replace"]').popover({
          trigger: 'hover',
          placement : 'bottom', 
          html: 'true',                            
          content :'Hello' 
    });   
});