Readonly Input Box Bug In Internet Explorer
I've got a strange bug, well, MSIE does. Seems it is failing on all major MSIE versions: 6, 7, 8 and 9 (!)
Solution 1:
I wouldn't say it's a bug. If you change the value, you also remove the current textRange.
Try test.select()
, it should give the cursor back to the input.
test.focus()
will result in a loop that will end in an "not enough memory"-error.
Solution 2:
I believe that readonly
should be readOnly
. Seems weird you would toggle this property. You can also try to remove it
jQuery("#foo").removeAttr("readOnly"); //.removeAttr("readonly");
Solution 3:
try this ive just tried that and it works:
<input type="text" value="empty"id="in"readonly/>
Post a Comment for "Readonly Input Box Bug In Internet Explorer"