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
5 $('#plus').click(function() { changeValue(1); }); $('#minus').click(function() { changeValue(-1); }); function changeValue(val) { var container = $('#value'); var current = parseInt(container.html(), 10); container.html(Math.max(0, current + val).toString()); }