$("#txtDeviceName").formValidator({ tipid: "tiptxtDeviceName", onshow: "请输入测点名称", onfocus: "名称不超过10个汉字" }).InputValidator({ min: 8, max: 20, onerror: "名称4-10位汉字,请确认" });
做验证
http://www.cnblogs.com/yelaiju/archive/2012/03/15/2398198.html
http://wenku.baidu.com/view/125d513a376baf1ffc4fad91.html?from=rec&pos=1
id为txtDeviceName的控件的form验证