$("#Form").validate({
rules: {
name: "required"
},
messages: {
name: "请输入您的名字"
},
errorPlacement:function(error,element) {
if (element.attr("name") == "name")
element.parent().after(error);
else
error.appendTo(element.parent());
},
debug:true
});

很简单~~~~~~~

05-18 09:13