I want to clear the text field when the user clicks on that
To do this you will need to use a scripting language, probably javascript. Here an example
Hope this helps.
Edit:
To meet what David is explain here is a second example in case that is what you are looking for