html highlight when click, how to highlight all text when click textarea, highlight when click text field, how to clear all text on click in textarea, how to clear all text on click in text field, example html: highlight, clear text when click
(Website Helper) highlight, clear on click Number of Visitors: Site Map

html: how to highlight, clear all text when click on it



Website Design
Website Promotion
Graphic Design
Programming
Free Software
Computer Tips
Discount Stores
This site provides users with the information about html highlight when click, how to highlight all text when click textarea, highlight when click text field, how to clear all text on click in textarea, how to clear all text on click in text field, example, and more.

If you think that this site is helpful, please recommend your friends to visit our site.



It is very easy to highlight, clear all the text in textarea or text field when you click on it. The following are the simple examples:

1. Highlight all the text in textarea or text field when click on it


< form>
< textarea cols=25 rows=8 onFocus="this.select()">This is a test< /textarea>
< /form>

Now let's see the above code in action as follows:

2. Clear all the text in textarea or text field when click on it


< form>
< textarea cols=25 rows=8 onclick="this.value=''" >This is a test< /textarea>
< /form>

Now let's see the above code in action as follows:

(Website Helper) highlight, clear on click (c) EduSoftMax - www.edusoftmax.com