1<input id="readonly-input" type="text" value="This text should be selected." readonly> 2<script> 3var input = document.getElementById('readonly-input'); 4input.select(); 5</script> 6
1<input id="readonly-input" type="text" value="This text should be selected." readonly> 2<script> 3var input = document.getElementById('readonly-input'); 4input.select(); 5</script> 6