/ 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:
Use it like this:
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function clean(element, what){ value = element.value; if(value==what)element.value=""; if(value=="")element.value=what; }