//plus / minus buttons $("#minusA").click(function () { $("#minuteA").val(function () { return this.value - 1; }); }); $("#plusA").click(function () { $("#minuteA").val(function () { return this.value + 1; }); }); $("#minusB").click(function () { $("#minuteB").val(function () { return this.value - 1; }); }); $("#plusB").click(function () { $("#minuteB").val(function () { return this.value + 1; }); });
This is the code for the buttons I have so far. Can someone tell my why this code works for the - buttons but does not for the +?
Hitting - cause the value to go from 25 to 24. Hitting + causes the value to go from 25 to 251.