Hi guys,
I need your help with my simple problem
I want to add the value of textbox1 and textbox2 and then show the result using plain text
Here is my code:
----------------------
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<script language="javascript">
function Addnow(form)
{
var TextBox1 = form.textname1.value;
var TextBox2 = form.textname2.value;
var txt = eval(TextBox1) + eval(TextBox2);
}
</script>
<form>
<INPUT type = text name="textname1" onChange="Addnow(this.form);">
<INPUT type = text name="textname2" onChange="Addnow(this.form);">
// how to display the value of "txt" in plain text only
</form>
</BODY>
</HTML>
I need your help with my simple problem
I want to add the value of textbox1 and textbox2 and then show the result using plain text
Here is my code:
----------------------
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<script language="javascript">
function Addnow(form)
{
var TextBox1 = form.textname1.value;
var TextBox2 = form.textname2.value;
var txt = eval(TextBox1) + eval(TextBox2);
}
</script>
<form>
<INPUT type = text name="textname1" onChange="Addnow(this.form);">
<INPUT type = text name="textname2" onChange="Addnow(this.form);">
// how to display the value of "txt" in plain text only
</form>
</BODY>
</HTML>