I’ve to create a custom text field which is support some of the mathematical expression also. So I thought of using JQMath.
I’ve to pass a expression with html input field using javascript. It’ll be added dynamically. So I put the expression in a string which is changeable anytime. But if I use the string, it didn’t give the positive output. I googled a lot about this, but I cant get it. Please help me on this.
Below is my code.
var string = "$x={-b±√{b^2-4ac}}/{2a\html'<input size=1 >'}$"
var di = document.createElement("div");
di.innerHTML = string//+textStr;
document.body.appendChild(di);
M.parseMath(di)