我是 Jquery 的初学者。我正在尝试表单验证。一切都很好。但它没有显示我指定的消息。这是代码:
$(document).ready(function (){
$("#RegForm").validate( {
rules:{
unameTxt: "required",
pnameTxt: "required",
pnameTxt2: "required",
phnumTxt: "required",
emailTxt:"required"
},
messages: {
unameTxt: "Please enter Ur Username",
pnameTxt: "Please enter Ur Password",
pnameTxt2: "Confirm Ur password",
phnumTxt: "Please enter Ur Phone nm",
emailTxt:"Enter emailid"
}
});
});
请帮我