/****************** In Number - Quantity Style - 1 *******************/ function increaseValue() { var value = parseInt(document.getElementById('number').value, 10); value = isNaN(value) ? 0 : value; value++; document.getElementById('number').value = value; } function decreaseValue() { var value = parseInt(document.getElementById('number').value, 10); value = isNaN(value) ? 0 : value; value < 1 ? value = 1 : ''; value--; document.getElementById('number').value = value; } /****************** In Number - Quantity - Modal *******************/ function increaseValueModal() { var value = parseInt(document.getElementById('modal-number').value, 10); value = isNaN(value) ? 0 : value; value++; document.getElementById('modal-number').value = value; } function decreaseValueModal() { var value = parseInt(document.getElementById('modal-number').value, 10); value = isNaN(value) ? 0 : value; value < 1 ? value = 1 : ''; value--; document.getElementById('modal-number').value = value; } /****************** In Number - Quantity Style -2 *******************/ jQuery('