how to disable keyboard input in javascript

Solutions on MaxInterview for how to disable keyboard input in javascript by the best coders in the world

showing results for - "how to disable keyboard input in javascript"
Swan
06 Aug 2017
1$(function() {
2   $('#datepicker').keypress(function(event) {
3       event.preventDefault();
4       return false;
5   });
6});
7// Example: http://jsfiddle.net/4nc46jq9/1/