I have tried this, (note that I am using jQuery):
function HandleFileButtonClick()
{
1. //$('#filesel').click();
2. //document.replyform.image.click();
}
HTML:
<input type="file" id="filesel" name="image" style="display: none;" />
<a href="#"><img src="<?=TF?>/img/att.png" style="height:20px;" onclick="HandleFileButtonClick();" /></a>
neither are working in Google Chrome Browser… any ideas, or a replacement for jQuery click()
Sounds like you are hitting a security wall designed to only allow the file upload box to be triggered by the user.
You could try absolutely positioning the browser’s
browsebutton over your link, and then setting itsopacityto0.