I want to have a client side Plus / Minus system where a user can click the plus and a value is incremented by 1, minus and the value is decreased by 1, the value should nev
var currentValue = 0; $(document).ready(function() { $('#up').click(function() { currentValue++; }); $('#down').click(function() { if (currentValue > 0) { currentValue--; } }); });
Putting currentValue in a textfield or other element would then be trivial.
currentValue