Selecting the text in an input box [SOLVED]

Selecting the text in an input box [SOLVED]

How can I automatically highlight the text in a text field when user clicks on that text box?

Thanks.