Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to disable keyboard input in javascript

$(function() {
   $('#datepicker').keypress(function(event) {
       event.preventDefault();
       return false;
   });
});
// Example: http://jsfiddle.net/4nc46jq9/1/
Source by jsfiddle.net #
 
PREVIOUS NEXT
Tagged: #disable #keyboard #input #javascript
ADD COMMENT
Topic
Name
2+8 =