Make bootstrap popover work with custom html template

后端 未结 3 807
暖寄归人
暖寄归人 2021-02-05 04:38

I am using an input group textbox and I need the Bootstrap 3 popover to work and the popover template should be defined &n designed by me. So the html I have currently with

3条回答
  •  借酒劲吻你
    2021-02-05 05:08

    I would prefer to have all the HTML in templates. It goes like this:

    Something in Javascript

    $(".btn").popover({
       template: $("#selector").html(),
       placement: "auto"
    });
    

    And in HTML

    Anything you want in your popovers, either dynamic or static

提交回复
热议问题