Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jqmath - apply after page load

I would like to apply the jqMath script after the initial page load.

The problem I have is that I make an ajax call which retrieves some jqMath syntax and loads it into a div section of the main page.

However the syntax is not currently being parsed. How do I ensure jqMath can be triggered when the ajax call returns and applied to the appropriate div section ?

like image 992
dky Avatar asked Jan 26 '26 07:01

dky


1 Answers

Call M.parseMath(myDiv); after loading myDiv.

For example, jqMath automatically does M.parseMath(document.body); after the initial page load.

like image 85
Dave Barton Avatar answered Jan 28 '26 00:01

Dave Barton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!