Call jquery function with parameters on button click with math operations

In the following web we have the option to introduce two different numbers and to make operations of addition, subtraction, multiplication and division.
We will use function "on" together with the click event. When clicking on a button we will pick up its value, according to the value we will make an operation or another. The result of this operation will be stored in a result variable that will be shown in a "span" by means of the function text().

Comments

PHP Captcha


Interesting Articles