Select All On Click in my Search Box?
-
Hi,
Just a quick bit of help here, my Search input box looks like this:
<input class=”search-text” type=”text” name=”s” id=”search-text” value=”Search This Site!” />
How can I have it so when a user clicks on my Search Box all of the text (“Search This Site”) is automatically selected, like you see on another sites?
Looking for an efficent solution if possible!
EDIT: Solution Found!:
<input class=”search-text” type=”text” name=”s” id=”search-text” value=”Search GigaNu.com” onclick=”this.value=”;” />
- The topic ‘Select All On Click in my Search Box?’ is closed to new replies.