A simple jQuery on screen keyboard.
- Easy Setup
- Switch layout on the Fly
- Supports multiple input fields
- Custom layout
- First, copy and paste
dist/ckeyboard.min.js
in your project, and link to it before the closing</body>
element. Make sure jQuery is linked before this. - Next, you'll need to copy and paste the plugin's CSS into your project.
- Lastly, link to the keyboard CSS file
ckeyboard.css
file before the closing</head>
element.
Note: This plugin requires your website or application already runs a copy of jQuery, version 3.x.x or higher.
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="ckeyboard.min.js"></script>
<link rel="stylesheet" href="ckeyboard.css">
The first thing you will require is a keyboard holder that will hold the keyboard, and an input field on which the keyboard will operate.
<input type="text" id="search_field" maxlength="25">
<div id="keyboard"></div>
<div id="keyboard_numeric"></div>
cKeyboard_config.input_target = "#search_field";
cKeyboard();
MIT License: See the LICENSE file.