Posts: 44
Location: Tbilisi, Georgia
|
Hi all!
I am newbie in JS and have already met next problem:
I've got a form:
Code:
<form method="post" action="#" style="position: relative;">
<input type="file" id="filefield" class="invisible" value="" />
</form>
And simple img tag and can't make .click(); function work in Firefox and Opera (It works great in IE and Safari):
Code:
<img src="button.gif" onclick="document.getElementById('filefield').click();" />
Can anyone tell me how to solve this problem?  thx...
__________________
Nothing Is Impossible!
Last edited by OTO; 07-15-2007 at 11:34 AM..
|