How to insert close button in popover for bootstrap

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

JS:

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


        
25条回答
  •  生来不讨喜
    2020-11-29 21:18

    $(function(){ 
      $("#example").popover({
        placement: 'bottom',
        html: 'true',
        title : 'title!! ',
        content : 'test'
      })
    
      $(document).on('click', '#close', function (evente) {
        $("#example").popover('hide');
      });
      $("#close").click(function(event) {
        $("#example").popover('hide');
      });
    });
    
    
    

提交回复
热议问题