jquery 有一段代码感觉不是很懂 请大家说下有什么用? 我怎么感觉它失效了

    $("#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验证