我可以在引导程序弹出窗口中放置一个链接吗?

时间:2021-08-18 20:31:45

I would like to do something like this:

我想做这样的事情:

  $('.UofTennesseeKnox').popover({
    'selector': '',
    'placement': 'bottom',
    'title': '<a href="home.html">University of Tennessee-Knoxville</a>',
    'content': 'Facilities Services Department 2233 Volunteer Boulevard, Room 203 Knoxville, TN 37996-3010',
  });

but the whole value of 'title' appears on the page, including the tags. Is there an easy way to do this, or do I need to use a different popover script?

但是'title'的整个值出现在页面上,包括标签。有没有一种简单的方法可以做到这一点,还是我需要使用不同的popover脚本?

1 个解决方案

#1


5  

      $('.UofTennesseeKnox').popover({
        'selector': '',
        'placement': 'bottom',
        'title': '<a href="home.html">University of Tennessee-Knoxville</a>',
        'content': 'Facilities Services Department 2233 Volunteer Boulevard, Room 203 Knoxville, TN 37996-3010',
        'html': 'true'
      });

Duh.....

#1


5  

      $('.UofTennesseeKnox').popover({
        'selector': '',
        'placement': 'bottom',
        'title': '<a href="home.html">University of Tennessee-Knoxville</a>',
        'content': 'Facilities Services Department 2233 Volunteer Boulevard, Room 203 Knoxville, TN 37996-3010',
        'html': 'true'
      });

Duh.....