I'm trying to write a mathematical formula on a bootstrap popover:
<div class="row">
<div class="col-xs-3 col-sm-push-2 innerBox">
<div>
<button type="button" class="btn btn-lg btn-danger" data-toggle="popover"
title="Resultat:" data-content="$x^2+1$">Click to toggle popover</button>
</div>
</div>
</div>
But it doesn't work. I added a script (really not knowing what was I doing):
<script>
$(function () {
$('[data-toggle="popover"]').popover()
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
})
</script>
And it doesn't works. Curiosly it works once in a hundred times and I don't know why. I'm searching forums but there are not very much information. What can I do? Thank you for your time and willilngness!