title: evaluation tool with html and jquery
body: <p>I'm making this evaluation tool that uses radio buttons to select the grade and show the total result, that is the sum of different factors using jquery. I can make the summary, but I dont know how to subtract the previous value selected when I change the grade.</p>
  
  <p><a href="http://jsfiddle.net/xUrJv/8/" rel="nofollow">here is a jsfiddle that shows a simplified version of what I have..</a></p>
  
  <p>current JQuery</p>
  
  <pre><code> $('input[type=radio]').click(function(){
      var x= parseInt($(this).val());
      if ($('#weeh:not(:empty)').text()){
          var y= parseInt($('#weeh').text());
          var z= x+y;
          $('#weeh').text(z);
      }else{
          $('#weeh').text(0);
      }
  
    });
  </code></pre>
  
  <p>The expected behavior is:
  For example, If I clicked terrible, it added 4 but if I want to change it to good, it must subtract 4 and add 1 to the result</p>
  
  <p>your help is very appreciated.</p>