Is there a way to change the visibility of an image inside a textbox? I would like the placeholder text to become invisible when I select the "search" textbox. Can we achieve the same effect with a picture inside the textbox?
Here is the code:
<div id="ricerca">
<form >
<input type="text" class="ricerca" value="Search" onblur="if (this.value == '') this.value ='Search';" onclick="if (this.value == 'Search') this.value ='';" >
<input type="submit" id="lente" class="lente" value="show" style="border:none;">
</form>
</div>
You can check out the link here: