Bootstrap 3.0 Popovers and tooltips

前端 未结 8 1169
我在风中等你
我在风中等你 2020-12-22 16:05

I am new to Bootstrap and I\'m having trouble getting the popover and tooltip features to work. I had no problem with the drop downs and models but I seem to be missing some

8条回答
  •  执笔经年
    2020-12-22 16:53

    I had to do it on DOM ready

    $( document ).ready(function () { // this has to be done after the document has been rendered
        $("[data-toggle='tooltip']").tooltip({html: true}); // enable bootstrap 3 tooltips
        $('[data-toggle="popover"]').popover({
            trigger: 'hover',
            'placement': 'top',
            'show': true
        });
    });
    

    And change my load orders to be:

    • jQuery
    • jQuery UI
    • Bootstrap

提交回复
热议问题