title: How to disable Ajax-upload button?
body: <p>I'm trying to use this plugin <a href="http://valums.com/ajax-upload/" rel="nofollow">http://valums.com/ajax-upload/</a>.
  I added a file-limit, I want to disable the upload button (not hide, just disable).
  E.g.</p>
  
  <pre><code>if(filesNumber&gt;=limit)
  {
      //Disable the "Upload a file" button    
  }
  </code></pre>
  
  <p>So, if the user will try to upload another file, he should see a message that the limit is exceeded.
  Can you look at this plugin and help me?</p>
  
  <p>The button is not a form button, it is a div with css.</p>
  
  <pre><code>var btnUpload=$('#&lt;?=$filesManagerCode?&gt;upload');
          new AjaxUpload(btnUpload, {
              action: '&lt;?=$boxLink?&gt;actionMode&lt;?=LDTR?&gt;addfile',
              name: 'uploadFile[FilePath]',
              onSubmit: function(file, ext){
                  btnUpload.attr('oldContent', btnUpload.html());
                  btnUpload.html('&lt;img src="'+jsloader.src+'"/&gt;');
              },
              onComplete: function(file, response, temp){
                  btnUpload.html(btnUpload.attr('oldContent'));
                  $("#&lt;?=$filesManagerCode?&gt;files").load('&lt;?=$boxLink?&gt;', setFilesLimit(&lt;?=$params['filesLimit']?&gt;));
              }
          });
  
  
  &lt;div id="&lt;?=$filesManagerCode?&gt;upload" class="uploadButton"&gt;&lt;span&gt;Upload file&lt;/span&gt; &lt;span id="&lt;?=$filesManagerCode?&gt;uploadLimit"&gt;&lt;/span&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Thanks.</p>