Answer to Question #223411 in HTML/JavaScript Web Application for jass

Question #223411

How to perform Sum and Difference in jQuery:


1
Expert's answer
2021-08-05T03:01:48-0400

the sum of two numbers:

var a=parseInt($("#d1").val());
var b=parseInt($("#d2").val());
var sum=a+b;
alert($(sum));

the difference between two numbers:

var a=parseInt($("#d1").val());
var b=parseInt($("#d2").val());
var diff=a-b;
alert($(diff));


d1 and d2 id of two inputfields


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS