Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery watermarkinput plugin POSTs watermark values to server

I'm using the jQuery watermarkinput plugin to place hint text inside text box input fields. When the page POSTs back to the server, the watermark values are POSTed as the input box values.

How do I prevent the watermark values from being POSTed?

like image 882
Guy Avatar asked Aug 10 '09 21:08

Guy


1 Answers

Short of validating against the watermark text on submission, you're stuck. The watermark plugin (digitalbush.com) can't help you with that.

Edit
Apparently, it can (globally). As described in the comment:

$.Watermark.HideAll();  // hide's all watermark text
$.Watermark.ShowAll();  // restores watermark text
like image 200
Marc Avatar answered Sep 21 '22 11:09

Marc