trooprr / jquery-watermark

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

Non-native watermark interferes with jquery validate when validating by calling .valid and used with more than just required validator #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Have a field that's required and has another validator like number
2. Put a dependency on the required validator
3. Add a watermark (non-native)

What is the expected output? What do you see instead?
I expect the form validation to behave the same with a watermark as without. It 
doesn't.

What version of the product are you using? On what operating system?
3.0.8

Please provide any additional information below.

See the demo.htm. Scripts arn't included in the demo.

KEY POINT IS I have not clicked a submit button. I've called the "valid" method.

Original issue reported on code.google.com by critchle...@gmail.com on 13 Dec 2010 at 7:46

Attachments:

GoogleCodeExporter commented 8 years ago
Why don't you just hide the watermark before calling the valid method?  

This is a designed behavior of the plugin.  It says in the instructions that 
when you use JavaScript to bypass the normal handling of the page, you have to 
take care of the watermark yourself.  

There is no way for every jQuery plugin to handle the custom scripted 
interactions you create with other third party plugins.

Original comment by t...@speednet.biz on 21 Dec 2010 at 5:05