Backbone.js text change event
How do I trigger a change
event on textbox in a backbone view?
I tried:
events: {
"onChanged input.autocomplete": "update"
}
update
didn't get fired. I also tried change
.
Wha开发者_开发百科t is the name of the event for textchange?
This should work:
events: {
"change input.autocomplete": "update"
}
- Is the selector (input.autocomplete) correct?
- Change fires on blur, not on keydown - does this agree with your requirement?
精彩评论