I have an input field that was written with onfocus="this.value=''
, but recently decided to change it to onfocus="this.select()
. The trouble is that when I went to change it, it still clears! I searched my entire javascript library, html, everything looking for what could be causing that. Nothing is being called of the likes.
I tried clearing my cache. And I tried searching for value=''
and cl(
Anyone know how I could debug this? Or at worse, override what it's doing to make it do what I want?
My code :
<input type="text" value="Enter Keyword or Co. Name" name="q" id="q" class="foobar">
I have also tried :
<input type="text" value="Enter Keyword or Co. Name" name="q" id="q" class="foobar" onfocus="this.select();">
Thanks!