title: Jquery disable input with attr()
body: <p>I have a wired behaviour when I try to disable or readonly a input field using the attr(). </p>
  
  <p><code>removeAttr('disabled')</code> is working ok.</p>
  
  <p><code>attr('name', 'somthing')</code> is working</p>
  
  <p><code>attr('id', 'something else')</code> is working</p>
  
  <p><code>attr('disabled','disabled')</code> not working -> it writes only disabled="" in the DOM and it does not disable the input field</p>
  
  <p><code>attr('readonly','readonly')</code> not working -> it writes only readonly="" in the DOM but the input field can still be edited.</p>
  
  <pre><code>$(document).ready(function() {
  
      $("input[name='rdio']").live('click', function() {
          $(".radio_select").find("input[name='rdio']").each(function(){
              if(this.checked)
              {
                  $("#"+this.value).removeAttr('disabled');        
              }
              else
              {
                  $("#"+this.value).attr('disabled','disabled');
              }
          });
      });
  });
  </code></pre>
  
  <p>Has anyone experienced this behaviour? BTW I'm using jquery 1.4.2</p>
  
  <p>EDIT: Sorry, this was something I have tried and forgot to put it back. So with attr() the problem persists.</p>