I have a file upload and a button in my asp.
this is my aspx:
<asp:Panel ID="stage" runat="server" cssClass="containment-wrapper" style="border:1px solid #000000;">
<asp:Image ID="imgBrowse" runat="server" Height="375px" Width="640px" ImageUrl="Image/ClickHere.png" style="cursor:pointer"/>
<asp:FileUpload ID="FileUpload_IE" runat="server" style="display:none;" />
<asp:Button ID="btn_UploadHandler" runat="server" Text="Button" OnClick="btn_UploadHandler_Click" style="display:none;"/>
</asp:Panel>
I want to fire the click event when the FileUpload_IE
has been change. This is my js file:
$("#stage").click(function () {
if (navigator.appName == "Microsoft Internet Explorer") {
$('#FileUpload_IE')[0].click();
}
});
$("#FileUpload_IE").on("change", function (e) {
$("#btn_UploadHandler").click();
e.preventDefault();
});
The code has error in jquery 1.10.2 which is elem[ type ]();
is access denied.