mobile - jQuery to make the input text field readonly -


i'm using jquery mobile , have input text field auto selected when tapped/clicked using following code:

$(document).ready(function() {      $('.highlight').click(function(){          var input = this;          input.focus();          input.setselectionrange(0,999);       }); }); 

i add prevent changes field because tried adding readonly="readonly" html stopped auto highlight (on mobiles).

any suggestions?


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -