I have a form like this:
<form action="search.php" class='search' method='GET'>
<input
type="text/submit"
class="home_search_area"
value="Search"
name="search"
onblur="if(value=='') value = 'Search'"
onfocus="if(value=='Search') value = ''"
/></form>
Now my form hides word “Search” on focus. I want to show text “Press enter to start searching” outside textarea onfocus. How can I do this?
add an element under the input field:
add to the onfocus event: