I\'m using the following HTML code to autoselect some text in a form field when a user clicks on the field:
Thanks ilawton. This works for me