Input text in form to show Value

Input text in form to show Value

Click here to view the code in JsFiddle

Coding

"<h2>JavaScript Statements</h2>
<input type="text" id="aaa">
<input type="text" id="bbb">
<input type="button" value="Click here to run function" onClick="ttt()">
<script>
function ttt(){
    var a=document.getElementById("aaa").value;
    var b=document.getElementById("bbb").value;
    var c=a+b;
    var d=a-b;
    document.getElementById("hhh").innerHTML=d;
}

</script>

<h3 id=”hhh”></h3>”

Take Your Free Live Demo Class Now

We Will Call Back You Shortly

Enter Your DETAILS BELOW

We Will Send You the Course Fees Details In Below Number

Enter Your DETAILS BELOW

We Will Call Back You Shortly

Enter Your DETAILS BELOW

We Will Call Back You Shortly

Enter Your DETAILS BELOW

Enter Your DETAILS BELOW TO take

free demo class