I\'m having a textbox and assigned the following function (it\'s the only function assigned):
txt.bind(\"keyup\",function(event){
if(event.keyCode==13)
I had a similar problem
found that object with assigned keyup function was inside another object
first was div second was input
found that keyup was assigned to input and to a div with this input
Here's my workaround for the same issue:
$('input').live('keyup keydown', function(e) {
var thisKey = e.keyCode ? e.keyCode : e.which;
if (thisKey == 13) {
e.preventDefault();
e.stopPropagation();
if (e.type == 'keyup') {
$(this).closest('form').submit();
}
}
});