jquery.capsChecker is a jQuery plugin to check whether caps lock is turned on. It is the only plugin of its kind, which can recognize caps lock on numbers. That's important for users with standard German keyboard layout.
$('#txtTest').capsChecker({
capson: function(e, isOn) {
// ...
},
capsoff: function(e, isOn) {
// ...
}
});
Both options are optional and false by default.
$('#txtTest').capsChecker();
$('#txtTest').on('capson', function(e, isOn) {
//...
});
$('#txtTest').on('capsoff', function(e, isOn) {
//...
});
$('#txtTest').capsChecker('destroy');