2
I have a function that removes the readonly
of a field after focusing the same:
$input.removeAttr('readonly');
The problem is that only in Internet Explorer even after removing readonly it does not allow me to type in the field. The problem only solves if I leave the field and focus it again. I would like a solution where I do not have to use the event blur
and focus
, because I have other behaviors involving the function blur
.
Have you tried using the input disabled ? Example fiddle: https://jsfiddle.net/fvtgmxv7/2/
– Saliba
I couldn’t reproduce the error in IE 11.0, but try
$input.prop('readonly',false)
, See here– abfurlan
@abfurlan the problem occurs if the focus is already in the field and dynamically the effect is removed. Simply clicking on the field already solves the problem
– Ruby Dev Junior
@abfurlan that: http://jsfiddle.net/9050m0La/3/
– Ruby Dev Junior
try to use the removeAttribute: http://jsfiddle.net/h5jfhbk4/6/
– Tobias Mesquita