title: jquery disable/enable input/radio buttons
body: <p>I disable the input/radio buttons on a form field.
  When I try to enable them again with a button, that works fine.
  <a href="http://jsfiddle.net/3Z6aQ/" rel="nofollow">http://jsfiddle.net/3Z6aQ/</a></p>
  
  <pre><code>  $(document).ready(function() {
    $(".control").toggle(
  
    function() {
        $('.target').removeAttr("disabled");
        $(this).addClass("checked");
    }, function() {
        $('.target').attr("disabled", true);
        $(this).removeClass("checked");
    });
  });
  </code></pre>
  
  <p>But now, I try to enable this input buttons again with the "enter" button, but nothing happens here...can you please help me?</p>
  
  <pre><code>$(document).ready(function() {
  $(".control").toggle(
  
  function() {
      $('.target').removeAttr("disabled");
      $(this).addClass("checked");
  },
  function() {
      if (e.keyCode == 13) {
          $('.target').attr("disabled", true);
          $(this).removeClass("checked");
          return false;
      }
  });
  });
  </code></pre>
  
  <p><a href="http://jsfiddle.net/f6s8U/" rel="nofollow">http://jsfiddle.net/f6s8U/</a></p>
  
  <p>and that is what I tried in the last hour...but I have some problems with the code</p>
  
  <pre><code>$(document).ready(function() {
  $(".control").toggle(
  
  function() {
      $('.target').removeAttr("disabled");
      $(this).addClass("checked");
  },
  
  $('input').keypress(function(event) {
  
      var keycode = (event.keyCode ? event.keyCode : event.which);
      if (keycode == '13') {
          $('.target').removeAttr("disabled");
          $(this).addClass("checked");
          alert('You pressed a "enter" key in textbox');
      }
  });
  });
  });
  </code></pre>