Mar 27th, 2009, 1:05 PM
I have implemented the RSV validation script.
Placed the empty div: <div id="rsvErrors"></div> where I want it.
I then embedded the CSS on the form page.
It works but the problem is it will not call the "errorFieldDemo2". It loads a generic error list.
Thanks for your help, Gene
Code:
rsv.displayType = "display-html";
rsv.errorFieldClass = "errorFieldDemo2";
var rules = [];
rules.push("required,Name,Please enter your full name.");
rules.push("required,Email,Please enter your email address.");
rules.push("valid_email,Email,Please enter a valid email address.");
rules.push("required,Message,Please enter your message.");
Placed the empty div: <div id="rsvErrors"></div> where I want it.
I then embedded the CSS on the form page.
Code:
.errorField {
background-color: #990000;
color: white;
}
.errorFieldDemo2 {
background-color: #FFECB3;
color: #990000;
}
Thanks for your help, Gene