title: Why doesn't Jquery fadeOut() work? Hide() does
body: <p>After an Ajax result I'm trying to fadeOut a html button. This works most of the time, however sometimes the button isn't faded out and I can't figure out why.</p>
  
  <pre><code>$.ajax({
      type: frm.attr('method'),
      url: frm.attr('action')+'?time='+timestamp,
      data: frm.serialize(),
      dataType: 'json',
      success: function (data) {
          if(data['success'] === true){
              hideSaveButton();
          }
      }
  });
  
  function hideSaveButton(){
      $('#saveBtn').fadeOut(250);
  }
  </code></pre>
  
  <p>Accessing the hideSaveButton() function doesn't seem to be a problem. It's just the fadeOut() function that isn't working. I tried replacing fadeOut() by hide() which works without any problem.</p>
  
  <p>Any ideas?</p>