My work in JavascriptMVC is capturing the enter press event and i have steal ('jquery/event/key') plugin and my code is
'input keypress': function(ev){
alert("inside");
alert(ev.key());
if(ev.key() == '\r') {
alert("enter");
}
},
but it doesn't work in firefox itself my first alert('inside') is working but after that it says "ev.key() is not a function". Can anyone help me