2 つ以上のルールとメッセージを追加しようとしていますが、うまくいきません..
$("#updateMemberProfileForm").validate({
submitHandler: function(form) {
},rules: {
"member.memberphone" : {
required: true,
phoneUS: true
},
"member.memberfirstname" : {
required: true
},
"member.memberlastname" : {
required: true
},
"member.membermiddlename" : {
required: true
}
},
messages:{
"member.memberphone" : {
required: " * Phone no. required"
},
"member.memberfirstname" : {
required: " * firstname required"
},
"member.memberlastname" : {
required: " * lastname required"
},
"member.membermiddlename" : {
required: "* middlename required"
}
},
errorElement: "span"
});