I need .live to get it to persist for future events. I just got the syntax wrong multiple times.
$('form').live('keydown', function(e) {
if (e.ctrlKey && e.keyCode === 13) {
$('form').trigger('submit');
}
});
Attention in classroom
I need .live to get it to persist for future events. I just got the syntax wrong multiple times.
$('form').live('keydown', function(e) {
if (e.ctrlKey && e.keyCode === 13) {
$('form').trigger('submit');
}
});