it's may be easy as breathing but I just dont see the mistake in my code...
I try to add an click-Event to a div with an unique ID but it does not work at all. Neither with jQuery or javaScript.
Code:
$("#btnF5").click(function () {
alert("Handler for test1 called.");
});
document.getElementById("btnF5").addEventListener("click", myFunction);
function myFunction () {
alert("Handler for test2 called.");
}
JSFiddle: https://jsfiddle.net/ckom0pbo/
Sorry if I am just dumb at this point.
Greetings