The best way is to add the following script code:
<script> $(function () { $("a[rel=popover]") .popover({ offset: 10 }) .click(function (e) { e.preventDefault() }) }) </script>
Thus, all elements a with the attribute rel = "popover" will be displayed in this popover.
No changes are required for your code, and it works great ... at least on my machine, of course ;-)
Give it a try!
source share