Hi All,
I want to hide the Fileupload and Submit button using Jquery. I created one page for Fileupload and Submit Button. And Using IFrame i am firing these controls.
Below is my Jquery Code. Its working fine in IE, but not in Firefix and Chrome. Any suggessions, Please
<script type="text/javascript">
function OpenFileUpload() {
var myFrame = document.getElementById('frameUpload');
$(myFrame).focus();
$(myFrame).contents().find("#FileUpload1").click();
var value = $(myFrame).contents().find("#FileUpload1").val();
if (value != '') {
$(myFrame).contents().find("#btnSubmit").click();
}
}
<div>
<iframe id="frameUpload" name="Content1" src="FileUpload.aspx" frameborder="0" width="0" height="0" ></iframe>
</div>
Fileupload.Aspx Code:
<a ...
Go to the complete details ...