I can't get the following event to attach to my element.
events = {
"change .date-selector .date-range": "dateRangeSelectionChanged"
}
Is this supported at all in Backbone.js? Or am I using a wrong syntax?
You can separate the selectors by comma(',')
events: { "change .date-selector,.date-range": "dateRangeSelectionChanged" }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With