jQuery Plugin To Submit A Form Via Ctrl + Enter - cmd-ctrl-enter.js
File Size: | 7.25 KB |
---|---|
Views Total: | 550 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

cmd-ctrl-enter.js is an extremely simple jQuery plugin that binds Ctrl / cmd (⌘) + Enter to form submission within a textarea.
How to use it:
1. The plugin requires jQuery library loaded correctly before you load the cmd-ctrl-enter.js
.
<script src="//code.jquery.com/jquery.min.js"></script> <script src="src/cmd-ctrl-enter.js"></script>
2. Apply the plugin to your textarea.
$('textarea').cmdCtrlEnter();
3. That's it. You can destroy the plugin manually like this:
$('textarea').cmdCtrlEnter('destroy');
This awesome jQuery plugin is developed by widernet. For more Advanced Usages, please check the demo page or visit the official website.