When passing an object, you set the html of the span with 'hmtl', a css class with 'cls', direct style with 'css', or inherit style from the input with 'inherit'. Simple watermarks can be added by just using a string.
Clear all watermarks - Add all watermarks
| Selector: | $("#wm2").watermark("Something"); | |
| Base class: | Add - Remove ($('#wm3').watermark('Watermark added'), $('#wm3').watermark({remove:true});) | |
| Basic: | watermark="Add text here" | |
| Adding style: | watermark="{html:'With style...',css:{color:'blue'}}" | |
| Adding class: | watermark="{html:'With class...',cls:'isgreen'}" | |
| Textarea: | watermark="Enter something here for testing textarea..." | |
| Inherit: | watermark="{html:'Inheriting color',inherit:'color'}" | |
| Inherit more: | watermark="{html:'Inheriting color',inherit:['color','font-weight','font-family','font-size']}" |
