title: Why isn't jquery detecting when a radio button is unchecked?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5176803/jquery-radiobutton-change-not-firing-during-de-selection">JQuery $(#radioButton).change(…) not firing during de-selection</a>  </p>
  </blockquote>
  
  
  
  <p>I have the following HTML/jQuery:</p>
  
  <pre><code>&lt;input id="rb1" type="radio" name="rb" checked="true"&gt;
  &lt;input id="rb2" type="radio" name="rb"&gt;
  
  
  $("#rb2").change(function () {
      if ($(this).is(":checked")) {
           alert('checked');
      }
      else {
          alert('unchecked');
      }
  });
  </code></pre>
  
  <p>When my <code>rb2</code> radio button is unselected by selecting rb1, the change event does not fire.  Why is this?  Is it possible to get this working without changing my selector to match both inputs and then looking at the ID?</p>
  
  <p>Fiddle: <a href="http://jsfiddle.net/4uRWR/" rel="noreferrer">http://jsfiddle.net/4uRWR/</a></p>