This Angular tutorial helps you get started with Angular quickly and effectively through many practical examples.

Addition of Two Number in jQuery

Addition of two numbers in jQuery

Here, Use this code for adding two numbers by using jquery. We create two input element in HTML and alert message will show the output.

<!DOCTYPE html>
<html lang="en-US">
<title>Adding two number in jQuery</title>
<script src=""></script>
<meta charset="windows-1252">

$(document).ready(function () {
$("#submit").on("click", function () {
var a = parseInt($('#num1').val());
var b = parseInt($('#num2').val());
var sum = a + b;
<input type="text" id="num1" name="option">
<input type="text" id="num2" name="task">
<input id="submit" type="button" value="Add Number">


jquery Add Number Example