Issue
I am working on a Chrome Packaged App so my code should only work in Chrome.
I have the following input
<input type="date" />
https://jsfiddle.net/jhbo4q2k/
On Chrome this automatically adds a DatePicker. I would like to only keep this Datepicker and disable the input by keyboard.
Is this possible?
EDIT:
The accepted answer works. Just be wary of this
https://developer.chrome.com/extensions/tut_migration_to_manifest_v2#inline_scripts
You cant use inline scripts in a packaged app.
Solution
You can use onkeydown
and prevent user from entering the value.
<input type="date" onkeydown="return false" />
Answered By - mohamedrias
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.