나는이 html 코드가 있습니다FileField 버튼을 적용하는 방법 FF로 클릭 하시겠습니까?
<form name="form1" id="form1" method="POST" action="">
<div dir="rtl" style="position:absolute; left: 2px; top: 0px;">
<input name="fileField2" type="file" class="accountItemFilefield" id="fileField2" />
</div>
<div style="position:absolute; z-index:2;">
<img onclick="$('#fileField2').trigger('click'); " style="cursor:pointer" src="images/browse.png" width="83" height="29" alt="" />
</div>
</form>
이 코드는 FF에서 작동하지 않습니다 그것은 IE에서 성공적으로 일하고과 나는 문제가 무엇인지 모른다.
$('#fileField2').click();
이 하나 :
document.getElementById('fileField2').click();
그들 모두가 FF에서 IE에서 작업 가시하지 않는
나는이 코드를 시도했다.어떻게 문제를 해결할 수 있습니까?
미리 감사드립니다.
태그는 자바가 아니고 자바가되어야합니다 –
@Geoffrey De Smet : 죄송합니다. 실수를 입력하고 – Saleh