Set readOnly Property

document.forms['myFormId'].myTextArea.readOnly=true/false;

or

document.getElementById('elementId').readOnly = true/false;