title: @Html.CheckBoxFor Set Value With Value From Model
body: <p>How do I set the value  of this checkbox with the value of SelectedWebSite1URL property?</p>
  
  <pre><code>@model  WLWeb.Models.MyModel
  ...
      &lt;label&gt;@Html.CheckBoxFor(m =&gt; m.MyModel.SelectedWebSite1, new { @id = "chk1", @class = "chkWebSite", value = "HowDoIsetThis?" })@Html.DisplayFor(m =&gt; m.MyModel.SelectedWebSite1Name)&lt;/label&gt;
  </code></pre>
  
  <p>model:</p>
  
  <pre><code>public class MyModel
  {
  ...
          public bool SelectedWebSite1 { get; set; }
  
          public string SelectedWebSite1Name { get; set; }
  
          public string SelectedWebSite1URL { get; set; }
  }
  </code></pre>
  
  <p>Note: the reason I need this is to get the value (website url) with jquery:</p>
  
  <pre><code>$(function () {
      $('#btnGoSite').click(function () {
          $('.chkWebSite:checked').each(function () {
              alert(this.value);
          });
      });
  });
  </code></pre>