title: how to get formData file by input id
body: <p>I have formData which gets file based on input type</p>
  
  <pre><code>formData.append('idCard', $('input[type=file]')[0].files[0]);
  </code></pre>
  
  <p>Now I have several file input and getting file based on <code>type</code> of input isn't that ideal, i want to get my files based on input <code>id=""</code></p>
  
  <p><strong>How should i change my code above to get files by input id instead of input type?</strong></p>