title: checkbox is not set checked onclick in jquery
body: <p>I have a 3 html checkboxes (<code>&lt;input type="checkbox" id="chkBillTos" class="chk" /&gt;</code>) with same class and different Id where i want toggle between them(i.e If one checked other two's unchecked). But when i clicked on one check box ,its not checked while other two can be checked or unchecked on that time.</p>
  
  <pre class="lang-js prettyprint-override"><code>$(".chk").click(function() {
    $('.chk').attr('checked', 'checked');
    //$('.chk').attr('unchecked', 'unchecked');
    var id = $(this.id);
    id.checked = true;
    $(id).attr('checked', 'checked');
    if (!$(this).is(':checked')) {
      alert($(this));
      $(this).is(':checked') = true;
    }
  }
  </code></pre>