モデルにバインドされたフォームがあります:ユーザーフォームは、Backbone.View.extend で表されます。
model:user
ビュー内:
events: {
'click #payment' : 'updatePayment'
}
ここで、支払いは html select with :
<div class="span2" id="payment">
<select class="span12">
<option value="paypal">paypal</option>
<option value="check">check</option>
</select>
</div>
updatePayment: function() {
var payment = this.$("#payment");
console.log(payment);
}
悲しいことに、支払いには価値がありません。誰か助けてくれませんか?ありがとう!