Bootstrap popover plugin not working

randallspider

New Member
I'm trying to use the Twitter Bootstrap popover plugin to bring up a popover when a \[code\]<span>\[/code\] element is clicked.All the files are including on the page, including \[code\]bootstrap-tooltip.js\[/code\] and \[code\]bootstrap-popover.js\[/code\]. This is my jQuery code to call the popover:\[code\]$('#supported-hosts').popover({ 'animation': true, 'html': 'test', 'trigger': 'click'});\[/code\]However when I click the element nothing happens. There's no Javascript error in the developer console or anything.I've also tried doing this to no effect:\[code\]$('#supported-hosts').on('click', function() { $(this).popover('show');});\[/code\]I'm pretty clueless as to what's wrong because as far as I can tell from the Bootstrap docs I'm using it correctly.Edit: Also the HTML is simply a span element:\[code\]<span id="supported-hosts">Supported filehosts</span>\[/code\]
 
Back
Top