Text change event in backbone.js

How can I trigger an event changein a text field in trunk mode?

I tried:

events: {
    "onChanged input.autocomplete": "update"
}

updatenot fired. I also tried change.

What is the name of the text messaging event?

+5
source share
1 answer

This should work:

events: {
    "change input.autocomplete": "update"
}
  • Is the selector (input.autocomplete) selected correctly?
  • Change fires to blur, not keydown - does this fit your requirement?
+12
source

All Articles