View:
<asp:PlaceHolder runat="server" ID="myPlaceHolder">
<button id="cmdMyButton">ButtonName</button>
jQuery:
$(function () {
$('body').on('click', "#cmdMyButton", function (e) {
alert("alertmessage");
});
...
Clicking the button cmdMyButton works in Firefox and Chrome, but does absolutely nothing in Edge. I do not get the alert in Edge.
I have tried everything in this topic Microsoft Edge: onclick event stops working? But nothing worked for me. I am using jQuery 3.3.1