input highlight text on focus 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" />