Adding custom class to tooltip

后端 未结 8 989
一生所求
一生所求 2021-02-05 02:04

I want to style(css) some bootstrap-tooltip.js tooltips, without affecting all the tooltips. I have tried many different solutions but i allways end up adding a class to the ele

8条回答
  •  独厮守ぢ
    2021-02-05 02:58

    Try setting the html option to true and inserting something like YOUR TEXT into the title option.

    $(function(){
      $("[id$=amount]").tooltip({
        trigger: 'manual',
        placement: 'right',
        html: true,
        title: 'YOUR TEXT'
      });
    }); 
    

    I honestly am not sure if this will work, but I believe it's worth a shot.

    EDIT: After reading this post it may be more helpful.

提交回复
热议问题