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)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay