A Pen by Captain Anonymous on CodePen.
Created
March 10, 2015 02:58
-
-
Save anonymous/66e7cd1815241a270335 to your computer and use it in GitHub Desktop.
gbdqMZ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span id="minus-lote"> - </span><span id="number-lote">0.02</span> <span id="plus-lote"> + </span> | |
<span id="minimum-founds"></span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#minus-lote").on("click", function () { | |
var activeLote = $("#number-lote").text(); | |
var calculate = parseFloat(activeLote); | |
if (calculate === 0.01){ | |
alert("0.01 es el lote minimo") | |
} else { | |
var result = calculate - 0.01; | |
$("#number-lote").html(result); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment