how to calculate value of two textfield and display its sum in third textfield autmotatically
hi,friends i want to show the trick of how to calculate the value of two text-field and got its sum in third text-field automatically and show sum when we type some value in second text-field. JAVASCRIPT <script> function sum() { var txtFirstNumberValue = document.getElementById(‘txt1’).value; var txtSecondNumberValue = document.getElementById(‘txt2’).value; var result = parseInt(txtFirstNumberValue) + parseInt(txtSecondNumberValue); if (!isNaN(result)) … Read more