select all text of input onclick

120

how to select all text when input box is clicked -

<input type="text" onClick="this.select();" value="Sample Text"/>

select all text of input onclick -

<input type="text" onfocus="this.select();" onmouseup="return false;" value="test" />

Comments

Submit
0 Comments