Clear Text Javascript Drupal Behavior

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

Takes any field with the class .clear-text and makes it clear it's default text (ex: 'search here') when it is focused on. If nothing is changed or the field is left blank, the original text appears when focus leaves the field.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.