jquery验证:在自定义div中显示错误标签

jquery验证:在自定义div中显示错误标签,jquery,jquery-validate,Jquery,Jquery Validate,我试图在div中显示错误标签,但它不起作用 <div class="panel-body"> <div class="well-custom datecontrol-fixed datecontrol-fixed-xs"> <div class="input-group"> <input type="text" class="form-control input-sm" id="TextBox

我试图在div中显示错误标签,但它不起作用

<div class="panel-body">
      <div class="well-custom datecontrol-fixed datecontrol-fixed-xs">
          <div class="input-group">
               <input type="text" class="form-control input-sm" id="TextBoxProdMoveDate" name="TextBoxProdMoveDate"/>
                      <label class="input-group-addon btn" for="TextBoxProdMoveDate">
                          <span class="glyphicon glyphicon-calendar"></span>
                       </label>
                     </div>
                    <div id="DivProdMoveDateErrorContainer"></div>
                   </div>
                 </div>
但是,它不起作用

<div class="panel-body">
      <div class="well-custom datecontrol-fixed datecontrol-fixed-xs">
          <div class="input-group">
               <input type="text" class="form-control input-sm" id="TextBoxProdMoveDate" name="TextBoxProdMoveDate"/>
                      <label class="input-group-addon btn" for="TextBoxProdMoveDate">
                          <span class="glyphicon glyphicon-calendar"></span>
                       </label>
                     </div>
                    <div id="DivProdMoveDateErrorContainer"></div>
                   </div>
                 </div>
我所期望的只是在DivProdMoveDateErrorContainer中显示错误标签


如果您有任何建议,我们将不胜感激。

Jquery验证将为数据不正确的每个字段生成一个标签,如:

<label id="reg_name-error" class="error" for="reg_name" style="display: inline-block;">Please enter name</label>

Jquery验证为数据不正确的每个字段生成一个标签,如:

<label id="reg_name-error" class="error" for="reg_name" style="display: inline-block;">Please enter name</label>

我明白你的意思+从我这里得到一个可能的解决方案。但是,我对手动为所有控件添加这些错误标签不感兴趣。我想要的是,jquery验证应该将错误标签放在一个特定的div容器中+从我这里得到一个可能的解决方案。但是,我对手动为所有控件添加这些错误标签不感兴趣。我要寻找的是,jquery验证应该将该错误标签放在特定的div容器中。
$("#fm_regis").validate({
  rules :{
    name: {
      required: true,
    },
  },   
  errorLabelContainer: "#id-of-your-specific-place",
  // More of your code
})