JSFiddle - React, Tailwind, and code Playground

HTML

<textarea rows="4" cols="50" id="test">
At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies. 
</textarea>
<button id="btn">btn</button>

JavaScript

$(document).ready(function(){
 alert($("#test").html())   
 
 
 $("#btn").click(function(){
      alert($("#test").html())   
 })
})