loisoft / jquery-watermark

Automatically exported from code.google.com/p/jquery-watermark
0 stars 0 forks source link

On focus in IE, don't hide the watermark text until the value in the textbox is changed #86

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. Create a text input box
2. Add watermark text
3. Load page in IE 8 or IE9 (possibly earlier versions also)
4. Click in the textbox, the watermark disappears.

This differs from the behaviour in e.g. Chrome where the watermark text remains 
until the user types text into the textbox.

I want to use the watermark plugin in a form with only one textbox (a search 
textbox), and as I set the focus in the textbox onload the watermark disappears 
and unfortunately thus makes the plugin totally useless in this case. 

Otherwise very nice plugin, would love to be able to use it in my the website 
I'm currently working on:-)

jquery-watermark version: 3.1.3
jquery version: 1.7.2

Original issue reported on code.google.com by andreas....@gmail.com on 20 Jul 2012 at 10:39

GoogleCodeExporter commented 8 years ago
Btw, if anyone has a workaround for this I would be most grateful to know how 
to do it:-)

Original comment by andreas....@gmail.com on 20 Jul 2012 at 10:40

GoogleCodeExporter commented 8 years ago
It is impossible to do this with the current way the plugin works.  It would 
have to use an overlay technique, and those types of watermarks have their own 
issues.

Original comment by t...@speednet.biz on 20 Jul 2012 at 2:55