I added a custom validation method to validate a password. Thanks Richard , worked with me with highlight/unhighlight method , but only one thing is need modification in ur code , instead of element.css('background', '#ffdddd'); However, you may want to add your own convenient validations. Extend JQuery Validator Plugin with custom method .
validate - jquery-how to use errorPlacement for a specific element?
Please file plugin bugs with the appropriate author on their bug tracker. jquery validation errorplacement specific element (2) .  errorPlacement 类型：Callback 默认：紧跟在无效表单后的标签中 说明： 用户自定义错误标签的显示位置。第一个参数：一个作为jQuery对象的错误标签，第二个参数为：一个作为jQuery对象的未通过验证 …
Limited access with a free account allows you to: View three pieces of content (articles, solutions, posts, and videos) The jQuery Form validation library comes with a large set of built-in validations.