In the input field (text) I have text that disappears after clicking it. How can I make this text easier by editing its color?
Sorry, the code looks dirty, I had to cut it to show you.
Thank!
James
<form>
<input type="text" name="search" size="35"
onclick="this.value='';"onfocus="this.select()"
onblur="this.value=!this.value?'Job Title
e.g. Assistant Manager':this.value;"
value="Job Title e.g. Assistant Manager"
style="background-color:white; border:
solid 1px #6E6E6E; height: 30px; font-size:18px;
vertical-align:9px"/>
<input type="text" name="searchterm" size="35"
style="background-color:white; border: solid 1px #6E6E6E;
height: 30px; font-size:18px; vertical-align:9px"/>
<input type="image" src="but.tiff" alt="Submit" width="60">
</form>
James source
share