Clear Text Field on Focus


/ Published in: JavaScript
Save to your folder(s)

This requires jQuery. The script checks to see if default text is present in a text field on focus. If it is, then it clears the text. Otherwise, it leaves user entered text intact. This is normally used for a search box.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.