DEV Community

programmerabhi
programmerabhi

Posted on

MathJax not working when appending MATHJax symbol using JQuery in HTML DOM

src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">

why not parse MATHJax symbol in JQuery when append symbol form object to DOM (HTML)

const ques=
[

{
que:" [x = {-b \pm \sqrt{b^2-4ac} \over 2a}.] ",
...................
.................
..............

...............
const que = ques[index];
$(".question").html(que.que);
................

while parsing directly it is worked fine.

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More