How to insert close button in popover for bootstrap

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

JS:

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


        
25条回答
  •  [愿得一人]
    2020-11-29 21:41

    enter image description here

    The following is what i just used in my project .And hope it can help you

    example
    
    
    $('#manualinputlabel').click(function(e) {
                  $('.popover-title').append('');
                  $(this).popover();
    
              });
    
          $(document).click(function(e) {
             if(e.target.id=="popovercloseid" )
             {
                  $('#manualinputlabel').popover('hide');                
             }
    
          });
    

提交回复
热议问题