showing results for - "js select input contents"
Mads
28 Mar 2019
1function selectText() {
2  const input = document.getElementById('text-box');
3  input.focus();
4  input.select();
5}