JSFiddle - React, Tailwind, and code Playground

HTML

<div class="inside">
</div>

<div class="content">
    <textarea id="fillMe"></textarea>
</div>

JavaScript

jQuery( document ).ready(function($) {
   $clickMe = $('<span>Insert Content</span>');
    
   $clickMe.on('click', function(e) {
    e.preventDefault();
    $('#fillMe').val('test');  
   });
    
   $( ".inside" ).append($clickMe);
});