Skip to content

Instantly share code, notes, and snippets.

Created March 10, 2015 02:58
Show Gist options
  • Save anonymous/66e7cd1815241a270335 to your computer and use it in GitHub Desktop.
Save anonymous/66e7cd1815241a270335 to your computer and use it in GitHub Desktop.
gbdqMZ
<span id="minus-lote"> - </span><span id="number-lote">0.02</span> <span id="plus-lote"> + </span>
<span id="minimum-founds"></span>
$("#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