title: Check if the Checkbox is checked or no in MVC
body: <p>I want to check if the checkbox is checked or no.
  I have the following code:</p>
  
  <pre><code>&lt;div class="checkbox"&gt;
  @Html.HiddenFor(model =&gt; model.VehicleTypeSelected)
  @Html.ValidationMessageFor(model =&gt; model.VehicleTypeSelected)    
  &lt;br&gt;
  @foreach (VehicleType vt in ViewBag.VehicleTypes)
  {
      &lt;label&gt;&lt;input type="checkbox" value="@vt.VehicleTypeID" name="VehicleTypeIds" class="vehicle-type-selector" /&gt; @vt.Name 
      &lt;br&gt;&lt;/label&gt;
  }
  </code></pre>
  
  <p>I want to use this approach:</p>
  
  <pre><code>                    $('#checkBoxForm :checkbox').click(function() {
                      var $this = $(this);
                      if ($this.is(':checked')) {
                          // the checkbox was checked 
                      } else {
                          // the checkbox was unchecked
                      }
                  });
  </code></pre>
  
  <p>if the checkbox (isUniversal) is checked, I want to disable all the checkboxes(vehicleTypes)</p>