マイナスボタンをクリックするとテキストボックス内の値が減少し、プラスボタンをクリックするとテキストボックス内の値が増加します。JSONを取り込んで自動的に入力するjQueryテンプレートを使用しています。
<script id="template" type="text/x-jquery-tmpl">
<div style="display:block;" id="${getNextId()}">
<div class="adjuster">
<button id='minusbutton'>-</button>
<input id='quantityText' class="enterQuantity" type=text
style="width:40px; margin-left:5px;margin-right:5px" />
<button id='plusbutton'>+</buton>
</div>
<div class="productName">
<div>${productname}</div>
</div>
<div class="quantity">
<span style="font-weight:bold;">${quantity}</span>
<span> Remaining</span>
</div>
</div>
</script>
マークアップのボタンに onclick イベントを追加すると、どのように目標を達成できますか?