Add two numbers and display result in textbox with Javascript

 function add_number() {

            var first_number = parseInt(document.getElementById("Text1").value);
            var second_number = parseInt(document.getElementById("Text2").value);
            var result = first_number + second_number;

            document.getElementById("txtresult").value = result;
        }

Comments

Popular posts from this blog

PHP Ajax Login Validation Tutorial

Real-Time Web Interface to MQTT using Socket.io and Node.js

New User Registration With Email Verification Using PHP and Mysqli