There are several options you could use to get the popover element:
1) Modify the Boostrap Popover to accept the id property in the parameter object and paste it into the template (line: 102)
2) Set the html property in the popover option using an identifier, for example.
$('#test-button').popover({html: true, content: '<div id="test-popover-content">... </div>'})
and then access the popover container through
var testPopover = $('#test-popover-content').parent().parent();
Neil Jun 21 '13 at 4:26 2013-06-21 04:26
source share