How to select value of input onClick?
javascript
Solution
<input type="text" onclick="select()"/>
Problem
I have a `<input type="text">` and if user clicks inside it I want to make the content (value) of that box selected. How would I do that?
javascript
<input type="text" onclick="select()"/>
I have a `<input type="text">` and if user clicks inside it I want to make the content (value) of that box selected. How would I do that?