var o = Backbone.View.extend({
template: [
'<label>ok1</label>',
'<select class="test1"><option>111</option><option>222</option></select>',
'<label>ok2</label>',
'<select class="test2" multiple="true" ><option>aaa</option><option>bbb</option><option>ccc</option></select>'
].join(''),
events: {
'change select': 'foo'
},
foo: function(){
console.log('change');
}
});
The change event work for ok1 when ok1 changed, but when I click the ok2 options, the change event doesn't catch, and I have try many ways to catch the ok2 options selected.
I'm new to backbone.js.
Can somebody help me?