<input type="button" value="+" onClick='price_item_3.value=parseInt(price_item_3.value)+1;'> <input type="button" value="-" onClick='if ( price_item_3.value != 0){price_item_3.value=parseInt(price_item_3.value)-1};'>