getting the old radio button on change
<p>i have a set of radio buttons in my page</p>

<p>on the change i want to now which button was unchecked but on the on change event <code>$(this)</code> refers to the new selected button is there any way to get the old unselected one? </p>

<pre><code>  window.old = null;
  $('.radio').change(function(){ 
  alert($(this).val()); // this is the selected
  alert($(window.old).val()); // this is the old one
  })
</code></pre>

<p>i'm sorry but i have to repeat this code becuz apparently my question is too short and doesn't meets stackoverflow quality standards </p>

<pre><code>$('.radio').change(function(){
  alert($(this).val()); // this is the selected
  alert($(old).val()); // this is the old one
})

$('.radio').change(function(){
  alert($(this).val()); // this is the selected
  alert($(old).val()); // this is the old one
})
</code></pre>
