jquery validator 错误显示 改变颜色
errorPlacement : function(error, element) {
??? ??? ??? if (element.is(":input")) {
??? ??? ??? ??? // 得到当前标签下一标签是为span
??? ??? ??? ??? var placement = $(element.next("label"));
??? ??? ??? ??? placement.empty();
??? ??? ??? ??? placement.css("color", "#FF0000");
??? ??? ??? ??? error.prependTo(placement);
??? ??? ??? }
??? ??? }