Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1030963 // jquery_submitFormOnCtrlEnter (put in onkeydown)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (28L/1K).

sS jquery_submitFormOnCtrlEnter() {
  ret [[if ((event.keyCode == 10 || event.keyCode == 13) && event.ctrlKey) $(this).closest('form').submit();]];
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030963
Snippet name: jquery_submitFormOnCtrlEnter (put in onkeydown)
Eternal ID of this version: #1030963/1
Text MD5: 36d2ae7c969ca6ec7a9a702bc792a745
Transpilation MD5: ea04bc1636a697283132a156c59889b2
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-15 17:51:22
Source code size: 151 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 195 / 279
Referenced in: [show references]