I'm trying to disable Enter key submit on a form but allow the Enter key event to be registered for some other code I have listening. Is this possible?
$('#createPost :input').on("keypress", function(e) {
if(e.target.id == 'post-author' && e.which == 13){
e.stopPropagation();
e.stopImmediatePropagation();
}
});
Is not working :( it still submits the form