Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to avoid displaying the keyboard in mobile safari

For instance if I have

<input type="text" id="myid">

and I am using the ipad, when i focus in this input, the ipad would automatically display the keyboard. Is there a way to avoid that? Thanks

like image 820
El Fuser Avatar asked Oct 04 '10 19:10

El Fuser


1 Answers

Yes, simply make the element readonly

<input type="text" id="myid" readonly="readonly" />

Note that this doesn't work with the element. I believe it might be a bug.

like image 192
Jonas Stawski Avatar answered Nov 05 '22 11:11

Jonas Stawski