js how to select all textin input when click code example
Example: select all text of input onclick
<input type="text" onfocus="this.select();" onmouseup="return false;" value="test" />
<input type="text" onfocus="this.select();" onmouseup="return false;" value="test" />