<button onclick="this.nextSibling.value-=1">-</button><input value="1" style="width: 30px; text-align: center;" /><button onclick="this.previousSibling.value-=-1">+</button>