<html>
<body>
Address:<br>
<textarea id="myTextarea">
342 Alvin Road
Ducksburg</textarea>
<br>
<button onclick="disableTxt()">Disable text area</button>
<button onclick="undisableTxt()">Undisable text area</button>
<script>
function disableTxt() {
document.getElementById("myTextarea").disabled = true;
}
function undisableTxt() {
document.getElementById("myTextarea").disabled = false;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_textarea_disabled3 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:17:50 GMT -->
</html>