{[['']]}
<script>
function sum()
{
var a=document.getElementById('t1').value;
var b=document.getElementById('t2').value;
document.getElementById('rs').innerHTML = eval(a) + eval(b);
}
</script>
.............
Result is :
<div id="rs"></div>
Download