HTML
<form>
<input name="test" />
<input type="submit" value="Submit">
</form>
JS
$("form").validate({
errorClass: "my-error-class",
validClass: "my-valid-class",
rules: {
test: {
required: true,
minlength: 12
}
}
});
CSS
.my-error-class {
color:red;
}
.my-valid-class {
color:green;
}
<form>
<input name="test" />
<input type="submit" value="Submit">
</form>
JS
$("form").validate({
errorClass: "my-error-class",
validClass: "my-valid-class",
rules: {
test: {
required: true,
minlength: 12
}
}
});
CSS
.my-error-class {
color:red;
}
.my-valid-class {
color:green;
}
No comments:
Post a Comment