I am currently trying to set up a HTML component that sends what is typed in (an input box) to a HTML component, and the HTML component converts it into maths symbols using MathJax. My code so far in the HTML component is…
MathJax exampleWhen \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
What this does is change the paragraph…
“When (a \ne 0), there are two solutions to (ax^2 + bx + c = 0) and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$”
In to…
What I would like to be able to do is to be able to type in the expression/equation into a input box and then this message is posted to the html component and the MathJax script is applied to display the maths correctly.
I understand how to post messages to HTML component, just not sure how to adapt the HTML code.
Thanks