首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

jquery validator 异常显示 改变颜色

2012-12-22 
jquery validator 错误显示 改变颜色errorPlacement : function(error, element) {??? ??? ??? if (elemen

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);
??? ??? ??? }
??? ??? }

热点排行