Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.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 如何在提交按钮中使用引导弹出窗口?_Javascript_Html_Twitter Bootstrap - Fatal编程技术网

Javascript 如何在提交按钮中使用引导弹出窗口?

Javascript 如何在提交按钮中使用引导弹出窗口?,javascript,html,twitter-bootstrap,Javascript,Html,Twitter Bootstrap,如何在提交按钮中使用引导弹出窗口 我试过这个: HTML代码: <input type="submit" rel="popover" data-placement="top" data-html="true" data-original-title="Popover test" value="{$progress}%)" class="button_submit"> JS代码: <script> $("a[rel=popover]").popover(); &

如何在提交按钮中使用引导弹出窗口

我试过这个:

HTML代码:

<input type="submit" rel="popover"  data-placement="top" data-html="true" data-original-title="Popover test" value="{$progress}%)" class="button_submit">

JS代码:

<script>
 $("a[rel=popover]").popover();
 </script>

$(“a[rel=popover]”);

但它不起作用。

您使用了错误的选择器

<script>
 $("input[rel=popover]").popover();
 </script>

$(“输入[rel=popover]”).popover();

您使用了错误的选择器

<script>
 $("input[rel=popover]").popover();
 </script>

$(“输入[rel=popover]”).popover();

这里没有发生什么?这里没有发生什么?