I have an iframe with external content on my website. In the code of the iframe content is a button with the id "XYZ"
I would like to set an onclick function on this. I tried something like that:
$( "#XYZ" ).click(function() {
alert("CLICK");
});
but this doesn't work > no alert. Where is my mistake?