Javascript code: var math = MathJax.Hub.getAllJax("questiondisplay") On..." /> Javascript code: var math = MathJax.Hub.getAllJax("questiondisplay") On..." /> Javascript code: var math = MathJax.Hub.getAllJax("questiondisplay") On..."/>

MathJax.Hub.getAllJax returns empty array

563 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 answers