Skip to content
Advertisement

How to disable full keyboard keys using javascript or jquery?

I want to disable full key boards keys using Javascript or jQuery.

And also, is it possible to disable to keyboard using PHP script?

Advertisement

Answer

try this

document.onkeydown = function (e) {
        return false;
}

for specific area try this

$(".class").keydown(function(event) { 
    return false;
});
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement