loisoft / jquery-watermark

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

Enhancement #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

What version of the product are you using? On what operating system?
- Watermark v3.0.4

Please provide any additional information below.

I was wondering if there would be a way to add a remove (unbind) function
similar to the hide:

hide: function (selector) {

}

remove: function(selector){

}

Currently the hide only hides the watermark.  I would like to remove the
binding completely from element.  The reason for this is that during
different flows of a process, the watermark may change (already accounted
for in the tool) and possibly removed.  The only way I can think of a way
to look as though it is removed is by changing the watermark to the color
of the background of the input box.

If you do not want to add it to the plugin, please let me know how this can
be done.  I have a tried a few times and have been unsuccessful.

Original issue reported on code.google.com by Brandon....@gmail.com on 21 Apr 2010 at 7:01

GoogleCodeExporter commented 8 years ago
You should be able to disable the watermark by passing an empty string as the 
only 
argument:

$("#myElement").watermark("");

In addition, you can always re-define any of the options by including them as 
the 
second argument.

I'm going to mark this as a non-issue.  If you find that the watermark is not 
disabled by sending an empty string, please open a new issue with that specific 
problem.  But I think it should work fine.

Original comment by t...@speednet.biz on 9 May 2010 at 6:55