Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
131
rated 0 times [  138] [ 7]  / answers: 1 / hits: 40583  / 11 Years ago, tue, july 16, 2013, 12:00:00

I have this JS code to bring up a popover:



$('a').popover({content: 'Popover text', title: 'Popover'});
$('a').popover('show');


I would like to change the attributes, for example, I would like the color of the popover to be a light yellow. Is there a way I can do this in the JS code itself? Perhaps in the template option?


More From » jquery

 Answers
18

You can do this with CSS by using the .popover, .popover-title, and .popover-content classes.



.popover-title{
background: #ffff99;
}

[#76957] Monday, July 15, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
deiong

Total Points: 15
Total Questions: 103
Total Answers: 99

Location: Sudan
Member since Thu, May 7, 2020
4 Years ago
;