您可以使用验证 errorPlacement 选项
一个例子:
JS 小提琴:http: //jsfiddle.net/6rGX5/5/
html 来显示错误
<div class="form_field">
<div class="error_message_holder"></div>
<!-- your text field goes here -->
<label>Field Name:</label>
<input type="text" class="required" name="..." ...>
</div>
<!-- you can have other elements similar to above -->
和 javascript
$('form').validate({
errorPlacement: function(error, element) {
error.html('your error message here');
if(element.closest('.form_field').find('label.error').length == 0){
error.insertBefore( element.closest('.form_field').find('.error_message_holder') );
}
}
});