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 -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -