title: Jquery ReEnable disable button
body: <p>For file upload, I've used a WordPress plugin.  <br> <br>
  Here I want to control the maximum number of file upload. I'm able to disable the upload plugin when user upload the max number file.  <br>But after disabling the upload button, when the user delete a file and want to upload a new file he can't. How do I reEnable the disbale upload button? I've disabled the upload button, count with the total number of input class. </p>
  
  <pre><code>jQuery(document).ready(function() {
      var limit = 3;
      jQuery('.qbutton').on('click', function() {
          if (jQuery(".mfcf7-zl-multifile-name").length == limit) {
              jQuery(this).attr("disabled", "disabled");
          }
      });
      jQuery('.mfcf7_zl_delete_file').on('click', function() {
          if (jQuery(".mfcf7-zl-multifile-name").length &lt; limit) {
              jQuery('.qbutton').removeAttr("disabled");
          }
      });
  });
  </code></pre>
  
  <p><strong>update:</strong> Event listener not work for dynamically create class <strong>.mfcf7_zl_delete_file</strong> <br>
  After removing attach file click event not trigged. </p>