title: How to call file input click with jquery?
body: <p>i want to call click event of file input only by jquery, but when i use this below code, it doesn't work:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;script src="js/jquery.js"&gt;&lt;/script&gt;
      &lt;script&gt;
          $(function () {
              setTimeout(function () {
                  $('#file').trigger('click');
              }, 2000);
          });
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;input id="file" name="file" type="file" /&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>NOTE</strong></p>
  
  <p>I want to do this only with jquery or javascript.</p>