html select all input box content on 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" />