簡體   English   中英

我如何在提交按鈕內使用Bootstrap Popover?

[英]How i can use Bootstrap Popover inside a submit button?

我如何在提交按鈕內使用Bootstrap 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>

但這是行不通的。

您使用了錯誤的選擇器...

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM