JSFiddle - React, Tailwind, and code Playground

by j08691

HTML

<textarea id="rrr" rows="5" cols="40" maxlenght="50" onmouseup="myfunction()"></textarea>

JavaScript

function myfunction() {
    document.getElementById("rrr").value = "test";
}