This is how we add that functionality to our websites using jQuery:
$('textarea').keypress(function(e){ if (e.ctrlKey && e.keyCode == 13) { $(this).closest('form').submit(); } });
[ad code=4]
Attention in classroom
This is how we add that functionality to our websites using jQuery:
$('textarea').keypress(function(e){ if (e.ctrlKey && e.keyCode == 13) { $(this).closest('form').submit(); } });
[ad code=4]
You must be logged in to post a comment.
Thanks for sharing! Worked great!