title: If input:radio click checked radio
body: <p>How do I detect when a radio button is checked?</p>
  
  <p><strong>HTML :</strong></p>
  
  <pre><code>&lt;label&gt;&lt;input type="radio" name="test"&gt;One&lt;/label&gt;
  &lt;label&gt;&lt;input type="radio" name="test"&gt;Two&lt;/label&gt;
  </code></pre>
  
  <p>I want to perform a certain function whenever the user picks an option from my radio button</p>
  
  <p>I tried something like:</p>
  
  <pre><code>$("input:radio").on("change", function(){
      if($(this).is(':checked')) {
          $(this).attr('checked', false)
          // do some more...
  
      }
  });
  </code></pre>
  
  <p><strong>Demo :</strong> <a href="http://jsfiddle.net/A5EzU/" rel="nofollow">http://jsfiddle.net/A5EzU/</a></p>
  
  <p>As the 'clear' debug statement shows on the fiddle, once clicked it looks like it is clicked all the time. </p>