/ Published in: JavaScript
When there's a value in a textbox, like 'search', it disappears when you click on it, and reappears when you leave (blur) it. But only if you haven't filled in anything ofcourse. Use it like this:
Expand |
Embed | Plain Text
function clean(element, what){ value = element.value; if(value==what)element.value=""; if(value=="")element.value=what; }
You need to login to post a comment.
