In my Html document, I created 3 input boxes. Those (ID s)are txt1txt2txttotIn my javascript document, I have 2 variables. Those arevar tmp;var total;I created a function like this....(javascript)function totval(){tmp= document.getElementById('txt1').value + document.getElementById('txt2').value;total=tmp;document.getElementById('txttot').value= tmp;}---------------------------------------------Html document<input type="text" id="txt1" ><input type="text" id="txt2" ><input type="text" id="txttot"><input type="button" onClick="totval()" value="Total"/> This is my problem.... In running mode, I will insert 25 and 50 to 'txt1' and 'txt2' textboxes.Accordion to my function, the value of 'tmp' should be= 75.but the value was display tmp= 2550How to get my expected value??