How to insert close button in popover for bootstrap

前端 未结 25 2918
忘了有多久
忘了有多久 2020-11-29 20:53

JS:

$(function(){
  $(\"#example\").popover({
    placement: \'bottom\',
    html: \'true\',
    title : \'         


        
25条回答
  •  攒了一身酷
    2020-11-29 21:22

    For anyone who is still a little confused:

    Here is how it works to toggle the popover after you have gotten it to show, select the same button you used to trigger it and call .popover('toggle') on it.

    In this case, for closing the popover the code would be:

    $('#example').popover('toggle');

提交回复
热议问题