Use this to disable keyboard input in JavaScript:
$('#datepicker').keypress(function(event) {
event.preventDefault();
return false;
});
Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.