我有一个表格,我想更改 css 中错误消息的字体大小和颜色,但我不知道该怎么做。
$(document).ready(function() {
$("#form1").validate({
rules: {
credit: {
required:true,
creditcard: true
},
amount: {
required: true,
min:(15),
},
firstname: "required",// simple rule, converted to {required:true}
surname: "required",// simple rule, converted to {required:true}
name2: "required",// simple rule, converted to {required:true}
surname2: "required",// simple rule, converted to {required:true}
name3: "required",// simple rule, converted to {required:true}
},
这些是消息,我不希望它们与表单输入的大小和颜色相同,需要弄清楚如何更改它们
messages: {
firstname: "Please enter a first name",
surname: "Please enter a surname",
name2: "Please enter a first name",
surname2: "Please enter a surname",
name3: "Please enter a name",
}
});
});