Количество [-]1[+]
<!-- Может быть сколь угодно много на странице -->
<div class="quantity">
<a href="#" class="minus"></a>
<input type="text" value="1" class="quantity-number">
<a href="#" class="plus"></a>
</div>
$('.quantity').each(function(){
var self = $(this),
input = self.find('input.quantity-number');
self.find('.plus, .minus').on('click', function(){
var isPlus = $(this).hasClass('plus'),
newValue = isPlus ? parseInt(input.val()) + 1 : parseInt(input.val()) - 1;
if(!newValue && newValue!=0){
newValue = 1;
}
if(isPlus){
input.val(newValue);
} else {
if(newValue > 0){
input.val(newValue);
}
}
return false;
});
});