TIMEX
TIMEX

Reputation: 272094

How do I bind keypress up in Backbone?

events:{
    'kepressUp input#price': 'submitForm'
},

How would I detect keypress up ?

WHen someone types something in the price section, I want to automatically submit the form.

Upvotes: 0

Views: 192

Answers (1)

sdespont
sdespont

Reputation: 14025

kepressUp event doesn't exists. You can use keyup, keydown and keypress

events:{
    'keyup input#price': 'submitForm'
},

Upvotes: 4

Related Questions