Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 576 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 576 Bytes

jquery.select-with-keys

This jquery plugin can create keybaord shortcuts to select a checkout/radio inputs in a sequence.

Usage

Dead Simple!! Call it inputKeyPress() on the container element that wraps yout checkbox/radio inputs. By default 4 keys a,b,c,d are binded to select 1st, 2nd, 3rd and 4th radio input.

$('#answers').inputKeyPress();

To bind to checkbox inputs:

$('#answers').inputKeyPress({type: 'checkbox'});

To use a different set of keys:

$('#answers').inputKeyPress({keys: [keycode1, keycode2, ... keycoden]});