title: jquery checkbox behave radio and save in cookie
body: <p>i want the the checkbox behave like radio but should be able to checked or unchecked and save the state checkbox in cookie. Here is the cookie code, from <a href="https://stackoverflow.com/questions/13936865/jquery-save-checkbox-state-on-click-in-cookie">here</a> or jsfiddle <a href="http://jsfiddle.net/R73vy/" rel="nofollow noreferrer">here</a></p>
  
  <pre><code>$(".chb").each(function() {
  var mycookie = $.cookie($(this).attr('name'));
  if (mycookie &amp;&amp; mycookie == "true") {
      $(this).prop('checked', mycookie);
  }
  });
  $(".chb").change(function() {
  $.cookie($(this).attr("name"), $(this).prop('checked'), {
      path: '/',
      expires: 365
  });
  });
  </code></pre>
  
  <p>i try added this code in .change but the cookie still save multiple state. its working fine without combine with cookie script. anyone can help?</p>
  
  <pre><code>$(".chb").not(this).prop('checked', false);
  </code></pre>