title: Dropzone.js and ajax
body: <p>Im using dropzone.js and loading it using ajax.</p>
  
  <p>My menu ID = "#menu"
  The upload file should appear in "#div1"</p>
  
  <p>The callback function is not working. I replaced Dropzone.discover by alert("test");</p>
  
  <pre><code>(document).ready(function() {
  
      $("#menu").click(function(){
  
      $("#div1").load("upload.php",null, function(){
          Dropzone.discover();
      });
  </code></pre>
  
  <p>Note: I tried  the code below, but it didnt work.</p>
  
  <pre><code>$("#div1").load("upload.php", function(){
      Dropzone.discover();
  });
  </code></pre>