Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Hi i got a file input object, but i want it to be hidden, and then i user a picture as button to trigget that hidden file input object, the thing is it works fine on IE, but on Firefox wont do anything, not even errors, anyone knows how to trigger the click() event on Firefox?Here is my code:function open_filebrowser(){ document.getElementById("fileBrowse").click();}<input type=file id='fileBrowse' style='display:none;'><img id="bf" src="graphics/open.gif" style='cursor:pointer;' onclick='open_filebrowser();'>
Carregando comentários...