SyntaxFix
Write A Post
Hire A Developer
Questions
This is my code:
$("#txtMessage").on( "keypress", function(event) { if (event.which == 13 && !event.shiftKey) { event.preventDefault(); $("#frSendMessage").submit(); } });