Edit This Code:
<!DOCTYPE html>
<html>
<body>

<form action="demo_form.asp">
Address:<br>
<textarea id="myTextarea" rows="2" cols="20" name="usrtxt" wrap="hard">
At W3Schools you will find free Web-building tutorials.
</textarea>
<input type="submit">
</form>

<p>Click the "Try it" button to display the value of the wrap attribute of the text area.</p>

<button onclick="myFunction()">Try it</button>

<p id="demo"></p>

<script>
function myFunction() {
    var x = document.getElementById("myTextarea").wrap;
    document.getElementById("demo").innerHTML = x;
}
</script>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy