Here is an interesting way to do it. In my case, I was using a main
error div at the top of the page, so I didn't need the individual
label.error elements inline. They kept showing up no matter what I
did until I added this to my validation:
errorElement: "em"
This changes the element that the
You can set the text to display in the error message. I did it so
that the test displayed is empty strings.
$("#registerForm").validate({
errorContainer: "#messageBox",
errorClass: "required",
rules: {
"reg_email": {
Actually, it does not work.
Validation plugu-in overrides "display:none" css attribute with its
own "display:inline".
Feryt.
On 11 Dub, 16:15, Chuck Harmston wrote:
> I don't recommend this, as it will stop users from submitting the form
> without giving them a reason for it. Talk about a usabi
I don't recommend this, as it will stop users from submitting the form
without giving them a reason for it. Talk about a usability nightmare.
However, if you insist on it, there is a simple enough solution: just use
CSS to style the .error class:
label.error{display:none}
Chuck Harmston
http://ch
4 matches
Mail list logo