Closed GoogleCodeExporter closed 9 years ago
exactly the feature I was looking for!
something like:
<input type="text" name="CustNumbr" class="watermarked" watermark="Enter
Customer Number" />
and then....
$('.watermarked').watermark(this.attr("watermark"));
or maybe....
$('.watermarked').watermark(function(){
return this.attr("watermark");
});
Original comment by jdzakar...@gmail.com
on 12 Apr 2012 at 9:58
Heya! The idea I propose doesn't require JS code, only the attribute. The
plugin can do the rest. Adding JS code defeats the whole purpose I think.
Anyway, so far it doesn't seem to be a priority.
Cheers!
D
Original comment by davi...@gmail.com
on 12 Apr 2012 at 11:56
David,
I did some searching around and found a different plug-in that does what I
think you are looking for...
https://github.com/danielstocks/jQuery-Placeholder
This enables the html5 "placeholder" (i.e. watermark) attribute for old
browsers.
bests,
jz
Original comment by jdzakar...@gmail.com
on 13 Apr 2012 at 10:23
Thanks for that mate!! :)
Original comment by davi...@gmail.com
on 13 Apr 2012 at 10:31
This issue is fixed in the latest release (3.2.0), with the addition of the
textAttr option.
Original comment by t...@speednet.biz
on 16 Aug 2014 at 4:53
Original issue reported on code.google.com by
davi...@gmail.com
on 28 Nov 2011 at 11:57