JSFiddle - React, Tailwind, and code Playground

HTML

<div id="section3">
    <textarea id="txtArea1">old value
    </textarea>
   </div>

JavaScript

alert($('#section3').html());
$('#txtArea1').val('new value');
alert($('#section3').html());