title: Get radio button previous state Click event/Uncheck the radio if previously checked
body: <p>How can I see if a Radio button was already checked in a <code>click</code> event?</p>
  
  <p>Actually what I want to do is that, if the clicked radio was previously checked, and user clicks the same radio again, then un-check it.</p>
  
  <p>But the code below always evaluates the if condition t true :P</p>
  
  <pre><code>$('input.radiooption').click(function(g) {
      if ($(this).is(":checked")) {
          console.log("already checked, now uncheck it");
      } else {
          console.log("Not checked");
      }
  });
  </code></pre>
  
  <p><strong>P.S.</strong></p>
  
  <p>The thing is,
  When I click an unchecked Radio button, <strong>it gets CHECKED</strong></p>
  
  <p>When I click an already checked button, <strong>it gets CHECKED</strong></p>
  
  <p>So, I want to know a way to determine the previous state of a radio button inside <code>click</code> event.</p>
  
  <p><a href="https://jsfiddle.net/24288jh5/" rel="nofollow">JS FIDDLE</a></p>