google-code-export / jquery-watermark

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

MVC data annotations conflict #106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I am using MVC data annotations on model fields
2. in my case "RegularExpression" attribute is marking a field.
3. When submitting empty text, the jquery is validating watermark text which is 
not the intended behavior

What is the expected output? What do you see instead?
I am not sure how to fix this, but the mvc validators should not work on the 
watermark text.

What version of the product are you using? On what operating system?
Version 3.1.4, OS windows 7 64bit

Please provide any additional information below.

MVC 4, visual studion 2010

Original issue reported on code.google.com by a.m.sal...@gmail.com on 10 Mar 2013 at 11:07

GoogleCodeExporter commented 9 years ago
If the watermark text is being evaluated by validation code, then you are not 
creating the watermarks at the right place.  See the documentation on the home 
page.

Original comment by t...@speednet.biz on 10 Mar 2013 at 12:28