JSFiddle - React, Tailwind, and code Playground

by AtheistP3ace

HTML

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

JavaScript

jQuery(document).ready(function () {
    $(".inside").append('<p><a id="myLink" href="#">Insert Content</a></p>');
    $('#myLink').on('click',
        function () {
        	$('textarea').val('some content');
        }
	);
});