Jquery math sum method

0 votes

I need to sum some money value, i have this html

<div class=''>54,44</div>
<div class=''>34,10</div>
<div class=''>44,00</div>
<div class=''>14,50</div>

How can i make an alert with the sum of these div text?? ( the right sum!! ;-) ) Many thanks!

Aug 5, 2022 in Web Development by gaurav
• 23,260 points
7,466 views

1 answer to this question.

0 votes

“sum of two numbers in jquery” Code Answer's

  1. var a=parseInt($("#d1"). val());
  2. var b=parseInt($("#d2"). val());
  3. var sum=a+b;
  4. alert($(sum));
answered Aug 5, 2022 by rajatha
• 7,680 points

Related Questions In Web Development

0 votes
0 answers

Is there a jQuery unfocus method?

How can I unfocus a textarea or ...READ MORE

Aug 8, 2022 in Web Development by gaurav
• 23,260 points
593 views
0 votes
0 answers

jquery ajax call "metho" instead of "method"?

I have a script.js that uses jQuery's ...READ MORE

Aug 18, 2022 in Web Development by gaurav
• 23,260 points
370 views
0 votes
0 answers

JQuery Validation - Remote method always check and become true before submit the form

Using jQuery validation plugin, I have been ...READ MORE

Aug 24, 2022 in Web Development by gaurav
• 23,260 points
2,909 views
0 votes
1 answer

How to download a file by jQuery.Ajax?

Hello @kartik, You don't need to do this ...READ MORE

answered Sep 18, 2020 in Web Development by Niroj
• 82,840 points
7,511 views
0 votes
1 answer

What is jQuery?

Hey, jQuery is a fast and concise JavaScript ...READ MORE

answered Feb 14, 2020 in JQuery by kartik
• 37,520 points
1,322 views
0 votes
1 answer

Uncaught TypeError: Cannot read property 'msie' of undefined - jQuery tools

Hello, Use the following script tag in your ...READ MORE

answered Apr 28, 2020 in JQuery by Niroj
• 82,840 points
15,717 views
0 votes
1 answer

Uncaught Error: Bootstrap's JavaScript requires jQuery

Hello @kartik, You have provided wrong order for ...READ MORE

answered Apr 28, 2020 in JQuery by Niroj
• 82,840 points
23,302 views
0 votes
1 answer

How to make Bootstrap popover Appear/Disappear on hover instead of click?

Hello @kartik, Set the trigger option of the popover to hover instead ...READ MORE

answered May 12, 2020 in JQuery by Niroj
• 82,840 points
3,315 views
0 votes
1 answer

jquery .on() method with load event

load() . The load() method attaches an event ...READ MORE

answered Aug 4, 2022 in Web Development by rajatha
• 7,680 points
3,390 views
0 votes
1 answer

How can I create a simple page vertical scroll bar without using jQuery?

Surprisingly, there is not a great, simple ...READ MORE

answered Jun 22, 2022 in Web Development by rajatha
• 7,680 points
543 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP