Are there any known issues with the click() event as it relates to input::file?
More likely though, I've misunderstood the context, any help would be
appreciated.
xhtml:
<a href="#" class="file" >Click to Browse Files</a>
<div style="display:hidden">
<input type="file" id="myFile" />
</div>
javascript:
$(document).ready(function() {
$('a.file').click(function() {
$('input#myFile').click();
});
});
When I debug this code, I see that the link click is being captured and the
hidden input field is being located, but the click() doesn't seem to trigger
the file dialog window to appear.
Any ideas?
*
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/