Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#cnt-up').click(function() {
- itemsAmount.val(Math.min(parseInt($('#nbItems').val()) + 1, 20));
- $("#nbItems").trigger("change"); // add this line
- });
- $('#cnt-down').click(function() {
- itemsAmount.val(Math.max(parseInt($('#nbItems').val()) - 1, 0));
- $("#nbItems").trigger("change"); // add this line
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement