I see this all over the web, but was wondering if anyone has the JavaScript code for the EASIEST way to show input value on blur, but hide in on focus.
This is what I use on my blog. Just go there and check out the source code behind.
function displaySearchText(text){ var searchField = document.getElementById('searchField'); if(searchField != null) searchField.value = text; }
Your input field should look something like this: