title: Can't validate checkbox value with jquery /ajax
body: <p>In my html form all data is successfully validation except checkbox value. It's not validate with jquery/ajax request. </p>
  
  <p><strong>here is my html form ajax and html code (only terms part):</strong></p>
  
  <pre><code>&lt;tr&gt;
  &lt;td&gt;Terms &amp; Conditions&lt;/td&gt;
  &lt;td&gt;&lt;input type="checkbox" name="terms"/&gt;&amp;nbsp; I agree to your &lt;a href=""&gt;terms and 
  conditions&lt;/a&gt;.&lt;/td&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;script&gt;
    $('#form1').submit(function(event) {
    event.preventDefault();
    $.ajax({
     type: 'POST',
     url: 'regProcess.php',
     data: $(this).serialize(),
     dataType: 'json',   
     success: function (data) {
          $('#info1').html('');
          $.each( data, function( key, value ) {
  
            $('#info1').append('&lt;p&gt;'+value+'&lt;/p&gt;');
          });    
  
     }
    });
   });
  &lt;/script&gt;
  </code></pre>
  
  <p>In regProcess.php page following is my Checkbox validation code but it's not validating..</p>
  
  <pre><code>if(isset($_POST['terms']) &amp;&amp; $_POST['terms'] == ""){
      $msg[] = "You must agree our terms and conditions";
      $msg1['error'] = true;
      }
  </code></pre>