JSFiddle - React, Tailwind, and code Playground
by K.J Ye
HTML
<textarea id='mytext'>Testing 1 2 3</textarea>
JavaScript
window.onload = document.getElementById('mytext').select();
by K.J Ye
<textarea id='mytext'>Testing 1 2 3</textarea>
window.onload = document.getElementById('mytext').select();