1. js는 <input>에 대한 readOnly 속성을 설정합니다.
<textarea name="content" id="content" cols="27"row="6"></textarea>
var cObj = document.getElementById("content");
cObj.setAttribute("readOnly",'true');
2. js에서 <input>readOnly 속성을 제거합니다.
var cObj = document.getElementById("content");
cObj.removeAttribute("readOnly");
참고: readOnly의 경우에 주의하세요! ! !