title: Uncheck all checkbboxes after form is submitted
body: <p>Hi I have a form that already clears other inputs but I'm having a hard time with the checkboxes. Could someone help me. This is my form inputs.</p>
  
  <pre><code>&lt;input type="hidden" name="admissionassessmentfee" value="0"&gt;
  &lt;input type="hidden" name="admissionassessmentexam" value="0"&gt;
  &lt;input type="checkbox" class="checkbox-inline" style="width: 25px; height: 17px;" name="admissionassessmentfee" value="1"&gt;Assessment Fee
  &lt;input type="checkbox" class="checkbox-inline" style="width: 25px; height: 17px;" name="admissionassessmentexam" value="1"&gt;Assessment Exam
  </code></pre>
  
  <p>Now, this is my javascript. As you will see the bottom I have already a clearForm Function where it clears other inputs when submitted.</p>
  
  <p>var manageAdmissionTable;</p>
  
  <pre><code>$(document).ready(function() {
  
  /*
  *-------------------------------------------------
  * click on the add admission model button
  *-------------------------------------------------
  */
  $("#addAdmissionModelBtn").unbind('click').bind('click', function() {
  
      /*remove error messages*/
      $(".form-group").removeClass('has-success').removeClass('has-error');
      $(".text-danger").remove();
      $("#add-admission-messages").html('');
  
      $("#createAdmissionForm").unbind('submit').bind('submit', function() {
          var form = $(this);
          var formData = new FormData($(this)[0]);
          var url = form.attr('action');
          var type = form.attr('method');
  
          $.ajax({
              url : url,
              type : type,
              data: formData,
              dataType: 'json',
              cache: false,
              contentType: false,
              processData: false,
              async: false,
              success:function(response) {                    
  
                  if(response.success == true) {                      
                      $("#add-admission-messages").html('&lt;div class="alert alert-success alert-dismissible" role="alert"&gt;'+
                    '&lt;button type="button" class="close" data-dismiss="alert" aria-label="Close"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;/button&gt;'+
                    '&lt;strong&gt; &lt;span class="glyphicon glyphicon-ok-sign"&gt;&lt;/span&gt; &lt;/strong&gt;'+response.messages+
                  '&lt;/div&gt;');
  
                      manageAdmissionTable.ajax.reload(null, false);
                      $('.form-group').removeClass('has-error').removeClass('has-success');
                      $('.text-danger').remove();
  
                      clearForm(); // THE CLEAR FORM WHEN SUBMITTED
                  }   
                  else {                                  
                      if(response.messages instanceof Object) {                           
                          $.each(response.messages, function(index, value) {
                              var key = $("#" + index);
  
                              key.closest('.form-group')
                              .removeClass('has-error')
                              .removeClass('has-success')
                              .addClass(value.length &gt; 0 ? 'has-error' : 'has-success')
                              .find('.text-danger').remove();                         
  
                              key.after(value);
  
                          });
                      }
                      else {                          
                          $("#add-admission-messages").html('&lt;div class="alert alert-warning alert-dismissible" role="alert"&gt;'+
                        '&lt;button type="button" class="close" data-dismiss="alert" aria-label="Close"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;/button&gt;'+
                        '&lt;strong&gt; &lt;span class="glyphicon glyphicon-exclamation-sign"&gt;&lt;/span&gt; &lt;/strong&gt;'+response.messages+
                      '&lt;/div&gt;');                      
                      }                           
                  } // /else
              } // /success
          }); // /ajax
  
          return false;
      }); 
  }); // /click on the add admission button   
  });
  
  function clearForm() // THE CLEAR FORM FUNCTION
  {
   $('input[type="text"]').val('');
   $('select').val('');
   $('input[type="date"]').val('');
   $(".fileinput-remove-button").click(); 
  }
  </code></pre>