Sunday, August 19, 2018

Prevent keyboard popup on datepicker for mobile devices

I had this same problem a couple months ago. My solution was to use readonly="true" in input flied. You can see an example on my page here:  https://www.minibustransports.com . This means users must be select the date on the calendar popup only, and the keyboard won't on mobile devices because the user can't input text.
Here is the code:
<input type="text" id="return_date" readonly="true">
       
I hope this help. Let me know if you have any questions to use this

No comments:

Post a Comment