Backbone html select value

khanz

New Member
I have a form that is bound to a model: user form, which is represented by Backbone.View.extend which has:\[code\]model:user\[/code\]inside the view:\[code\]events: { 'click #payment' : 'updatePayment'}\[/code\]where payment is a html select with :\[code\]<div class="span2" id="payment"> <select class="span12"> <option value="http://stackoverflow.com/questions/15867721/paypal">paypal</option> <option value="http://stackoverflow.com/questions/15867721/check">check</option> </select></div>updatePayment: function() { var payment = this.$("#payment"); console.log(payment);}\[/code\]Sadly payment has no value.Can someone please help?Thanks!
 
Back
Top