title: How do model bound Boolean radio buttons work in .NET Core?
body: <p>I'm having trouble binding a Boolean view model property to a radio button in .NET Core using tag helpers.</p>
  
  <pre><code>&lt;fieldset class="form-group"&gt;
      &lt;div class="row"&gt;
          &lt;label asp-for="AffectsUsers" class="col-sm-2 col-form-label text-right"&gt;Affects Users?&lt;/label&gt;
          &lt;div class="col-sm-10"&gt;
              &lt;div class="mt-2"&gt;
                  &lt;div class="form-check form-check-inline"&gt;
                      &lt;input class="form-check-input" asp-for="AffectsUsers" type="radio" value="true" /&gt;
                      &lt;label class="form-check-label" asp-for="AffectsUsers"&gt;Yes&lt;/label&gt;
                  &lt;/div&gt;
                  &lt;div class="form-check form-check-inline"&gt;
                      &lt;input class="form-check-input" asp-for="AffectsUsers" type="radio" value="false" /&gt;
                      &lt;label class="form-check-label" asp-for="AffectsUsers"&gt;No&lt;/label&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;span asp-validation-for="AffectsUsers" class="text-danger"&gt;&lt;/span&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/fieldset&gt;
  </code></pre>
  
  <p>I have a jQuery change event bound to the radio buttons based on ID.</p>
  
  <pre><code>$('#AffectsUsers').change(function() {
     if (this.value === 'true') { ... } else { ... }
  });
  </code></pre>
  
  <p>The event only being called for the first radio button.  I assume it's because I'm using radio button tag helpers, which are creating multiple inputs with the same ID.</p>
  
  <p>How can I bind the Boolean in my view model to the radio buttons so that the change event will respond appropriately based on the value of the control?</p>