title: Validation for multiple checkbox
body: <p>I have multiple checkbox in each row:</p>
  
  <pre><code>&lt;form id="CustomerNEmployeeForm"&gt;
  &lt;table&gt;
          &lt;tr id="row1"&gt;
              &lt;td&gt;
              &lt;div class="i-checks"&gt;&lt;input id="checkboxCustom1" type="checkbox" name="[0].RightsCodes.OpenOrders" value="true" class="checkbox-template"&gt;&lt;label for="checkboxCustom1"&gt;Open Orders&lt;/label&gt;&lt;/div&gt;
              &lt;div class="i-checks"&gt;&lt;input id="checkboxCustom2" type="checkbox" name="[0].RightsCodes.ClosedOrders" value="true" class="checkbox-template"&gt;&lt;label for="checkboxCustom1"&gt;Closed Orders&lt;/label&gt;&lt;/div&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr id="row2"&gt;
              &lt;td&gt;
              &lt;div class="i-checks"&gt;&lt;input id="checkboxCustom1" type="checkbox" name="[1].RightsCodes.OpenOrders" value="true" class="checkbox-template"&gt;&lt;label for="checkboxCustom1"&gt;Open Orders&lt;/label&gt;&lt;/div&gt;
              &lt;div class="i-checks"&gt;&lt;input id="checkboxCustom2" type="checkbox" name="[1].RightsCodes.ClosedOrders" value="true" class="checkbox-template"&gt;&lt;label for="checkboxCustom1"&gt;Closed Orders&lt;/label&gt;&lt;/div&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
  &lt;/table&gt;
   &lt;button class="btncreateusers" id="createusersJS" type="button" onclick="CreateCustomerNEmployees(this);"&gt; Create&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And Im trying validate checkbox where user checked at least one of checkbox in each row.</p>
  
  <p>This my JavaScript so for , but still no luck:</p>
  
  <pre><code>&lt;script&gt;
      function CreateCustomerNEmployees(e) {
  
          var boxs = $(e).closest("tr").before();
  
          if (boxs.find('input[class=checkbox-template:checked]').val() == "") {
  
              alert("check at least one");
              return false;
          }
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>Can anyone please help me! :)</p>