I just ran into this weird behavior with JQuery:
I've got one of these in my HTML:
<input type="file" name="pdfUrl" id="pdfUrl" />
This didn't work:
$pdfUrl = $('#pdfUrl');
But this did:
$pdfUrl = $('input:file')[0];
How come?
To clarify, I only have one id with pdfUrl in my document. Could it have something to do with the name and id being the same?
Running the chrome console gives this:
$('#pdfUrl')
[<input type="file" name="pdfUrl" id="pdfUrl">]
So that seems to be working.