hai am trying to submint form using document.forms.myForm.submit(). it's work fine in firefox.but it's not working in ie please help me.actual i have two from. I have also tried document.['myForm'].submit() method.
<script type="text/javascript">
function showBrowser()
{
document.getElementById('imageFile').click();
}
function submitElmentImage(){
document.forms.myForm.submit();
}
</script>
<html:form action="/ext" onsubmit="return validateElementForm(this)">
<html:button onclick="showBrowser()" />
</html:form>
<form id="myForm" enctype="multipart/form-data" method="post" target="uploadFrame"
action="/FileUploadServlet" >
<input type="file" name="imageFile" id="imageFile" onchange="submitElmentImage();" class="button_style" value="" accept="jpg,gif,png" />
</form>