Toni Michel Caubet Toni Michel Caubet - 1 year ago 103
jQuery Question

prevent iphone default keyboard when focusing an <input>

this is how i'm trying

<script type="text/javascript">


but the input stills 'launching' iphone's keyboard

ps: i want to do this because i'm using datepicker plugin for date

Answer Source

By setting the input field to readonly="true" you should prevent anyone typing anything in it, but still be able to launch a click event on it.

This is also usefull in non-mobile devices as you use a date/time picker

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download