How do I trigger a change
event on textbox in a backbone view?
I tried:
events: {
"onChanged input.autoplete": "update"
}
update
didn't get fired. I also tried change
.
What is the name of the event for textchange?
How do I trigger a change
event on textbox in a backbone view?
I tried:
events: {
"onChanged input.autoplete": "update"
}
update
didn't get fired. I also tried change
.
What is the name of the event for textchange?
Share Improve this question asked Jul 13, 2011 at 3:12 Shawn McleanShawn Mclean 57.5k96 gold badges281 silver badges412 bronze badges1 Answer
Reset to default 13This should work:
events: {
"change input.autoplete": "update"
}
- Is the selector (input.autoplete) correct?
- Change fires on blur, not on keydown - does this agree with your requirement?