I use Mathjax to display equations in a web application running in PHP / Ajax. Equations are displayed correctly on the first page load. On the same page, when the user clicks the button, ajax code works to extract some data from the database and display it on one page. But there the equations are not displayed correctly; instead, the latex code is shown as such. But if I refresh the page, then the equations are displayed correctly. How can I solve this problem?
source share