I have a site that pulls up a modal with data. It validates the modal and then closes the modal. This is the close function:
function closeModal() {
console.log("Close Modal button clicked");
console.log("Simulate buttonclick on " + '<%=btnSave.ClientID%>');
try
{
$('#<%=btnSave.ClientID%>').click();
}
catch(err)
{
console.log("btnSave.click error: " + err);
}
return true;
}
The .click calls a button which calls an ASP function to post the data to the database. This works fine in Chrome and Firefox but it is not working in IE 11.
Here is IE's console:
This is the same as what Chrome puts out in the log as well. However, the save is called and succeeds with Chrome and Firefox but not with IE.