Read-only and disabled state should be related, but actually they are different things. To disable some element, you need to use the
.prop()
method, for example:
myElement = $("#elementId");
myElement.prop("disabled", true);
myElement.prop("disabled", false);
Please see:
http://api.jquery.com/prop/[
^].
—SA