This is my html code :
<input id="R1" type="text" value="100">
<input id="R2" type="text" value="200">
<input id="formula" type="text" value="">
<input type="button" id="save" value="save">
Here the user enter formula value dynamically like R1+R2
, (R1-R2)*100
. I need to calculate final value using the formula.
Ex: If user enter value in formula field R1+R2;
I need the result 300.
How do i calculate the value dynamically ?