title: How can I disable other checkboxes(Dynamically Created) if I checked one?
body: <p>How can I disable other checkbox if I clicked one I..e dynamically created checkbox using <code>input type=checkbox</code></p>
  <pre><code>@if (ViewBag.Products != null)
  {
      foreach (var item in ViewBag.Products)
      {
          &lt;label class=&quot;PillList-item&quot;&gt;
              &lt;input id=&quot;Check&quot; type=&quot;CheckBox&quot; name=&quot;@item.ProductID&quot;/&gt;
              &lt;span class=&quot;PillList-label&quot; &gt;
                  @item.Products
                  &lt;span class=&quot;Icon Icon--checkLight Icon--smallest&quot;&gt;&lt;i class=&quot;fa fa-check&quot;&gt;&lt;/i&gt;&lt;/span&gt;
              &lt;/span&gt;
          &lt;/label&gt;
      }
  }
  </code></pre>