Posts by Leonardo Ferreira • 15 points
3 posts
-
0
votes3
answers161
viewsA: Problem in division and multiplication
In one of my needs similar to yours, I came to this conclusion: var sum = $('.larg').text(); var sum2 = $('.alt').text(); var sum3 = $('.metro').text(); if(sum == "") sum = 0; if(sum2 == "") sum2 =…
-
1
votes3
answers331
viewsQ: Jquery calculation of centimeters with coin result
I am breaking my head to try to make the code below understand that the value of DIV should be respected the comma (Ex.: 1,20cm) in which would be: div1(in centimetres) X div2(in centimetres) =…
-
0
votes2
answers260
viewsQ: Sum between Divs and display result in another div
I don’t understand why I can’t run the following script because I’m a bit of a layman: <div class="prices"> <h3>Option 1 = $<span class="sum"…