chitika

Tuesday, September 13, 2011

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

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>



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>

No comments:

Post a Comment

For other hundreds of computer repair tips, tricks, tweaks, guide, help, please go to


http://website.edusoftmax.com