开发者

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"
}
  1. Is the selector (input.autocomplete) correct?
  2. Change fires on blur, not on keydown - does this agree with your requirement?
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜