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)

Postmark Image

20% off for developers who'd rather build features than debug email

Stop wrestling with email delivery and get back to the code you love. Postmark handles the complexities of email infrastructure so you can ship your product faster.

Start free

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay