title: How to display custom validation error message using jquery validation plugin?
body: <p>I want to display validation error beside each checkbox group for each checkbox group. I have created span element for each and want to display error but its not showing beside checkbox for every checkbox group. instead its showing required error for each checkbox beside 1st checkbox group. How to achieve it?</p>
  
  <p>In bellow image, validation message is showing beside 1st checkbox group.</p>
  
  <p><a href="https://i.stack.imgur.com/kcb23.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kcb23.png" alt="enter image description here"></a></p>
  
  <p>Here is the Html file,</p>
  
  <pre><code>   &lt;div class="other-complain-right"&gt;
                                      &lt;ul&gt;
                                          &lt;li&gt;
                                              &lt;input type="checkbox" class="radio" value="1" name="IsBppStandard"&gt;
                                              &lt;label&gt;Yes&lt;/label&gt;
                                              &lt;input type="checkbox" class="radio" value="1" name="IsBppStandard"&gt;
                                              &lt;label&gt;No&lt;/label&gt;
                                              &lt;span id="ErrorIsBppStandard"&gt;&lt;/span&gt;
                                          &lt;/li&gt;
                                          &lt;li&gt;
                                              &lt;input type="checkbox" class="radio" value="1" name="IsKycNorm"&gt;
                                              &lt;label&gt;Yes&lt;/label&gt;
                                              &lt;input type="checkbox" class="radio" value="1" name="IsKycNorm"&gt;
                                              &lt;label&gt;No&lt;/label&gt;
                                              &lt;span id="ErrorIsKycNorm"&gt;&lt;/span&gt;
                                          &lt;/li&gt;
                                          &lt;li&gt;
                                              &lt;input type="checkbox" class="radio" value="1" name="IsKpcsSystem"&gt;
                                              &lt;label&gt;Yes&lt;/label&gt;
                                              &lt;input type="checkbox" class="radio" value="1" name="IsKpcsSystem"&gt;
                                              &lt;label&gt;No&lt;/label&gt;
                                              &lt;span id="ErrorIsKpcsSystem"&gt;&lt;/span&gt;
                                          &lt;/li&gt;
                                          &lt;li&gt;
                                              &lt;input type="checkbox" class="radio" value="1" name="IsIndustryPractice"&gt;
                                              &lt;label&gt;Yes&lt;/label&gt;
                                              &lt;input type="checkbox" class="radio" value="1" name="IsIndustryPractice"&gt;
                                              &lt;label&gt;No&lt;/label&gt;
                                              &lt;span id="ErrorIsIndustryPractice"&gt;&lt;/span&gt;
                                          &lt;/li&gt;
                                          &lt;li&gt;
                                              &lt;select&gt;
                                                  &lt;option&gt;Select Property&lt;/option&gt;
                                              &lt;/select&gt;
                                              &lt;input type="text" name="" placeholder="Other"&gt;
                                          &lt;/li&gt;
                                      &lt;/ul&gt;
                                  &lt;/div&gt;
  </code></pre>
  
  <p>Validation function as bellow,</p>
  
  <pre><code>   $("#kycFormTab4").validate({
          errorLabelContainer: '#ErrorIsBppStandard',
          //errorLabelContainer: '#ErrorIsKycNorm',
          //errorLabelContainer: '#ErrorIsKpcsSystem',
          //errorLabelContainer: '#ErrorIsIndustryPractice',
  
          rules: {
              'IsBppStandard': {
                  required: true,
              },
              'IsKycNorm': {
                  required: true,
              },
                'IsKpcsSystem': {
                  required: true,
              },
                'IsIndustryPractice': {
                    required: true,
              }
          },
  
          //specify validation error messages
          messages: {
              'IsBppStandard': {
                  required: "You must check at least 1 box",
              },
              'IsKycNorm': {
                  required: "You must check at least 1 box",
              },
              'IsKpcsSystem': {
                    required: "You must check at least 1 box",
               },
              'IsIndustryPractice': {
                    required: "You must check at least 1 box",
               }
          }
  
          //submitHandler: function(form){
          //    form.submit();
          //}
  
      });
  </code></pre>