{{question_display}} Javascript code: var math = MathJax.Hub.getAllJax("questiondisplay") On doing this mat" /> {{question_display}} Javascript code: var math = MathJax.Hub.getAllJax("questiondisplay") On doing this mat" /> {{question_display}} Javascript code: var math = MathJax.Hub.getAllJax("questiondisplay") On doing this mat"/>

MathJax.Hub.getAllJax returns empty array

623 Views Asked by At

My html:

<span id="questiondisplay">{{question_display}}</span>

Javascript code:

var math = MathJax.Hub.getAllJax("questiondisplay")

On doing this math is an empty array []

However, on doing $('#questiondisplay') I get: [<span id="questiondisplay" class="ng-binding"></span>]

Can anyone please explain what I'm doing wrong with MathJax ?

0

There are 0 best solutions below