I am looking for a way to detect if click has been made within a div
regardless of the content that is inside the div in question.
$(document).ready(function(){
$('#armaz *').on('click', function()
{ alert($(this).prop('id')); });
})
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<div id="armaz" ><iframe>Contenido</iframe></div>
As you can see I can not make it work. I explain that the content within div
is varied can be all kinds of objects, what I need is to detect if they have clicked the content of div
no matter what the content is an example iframe.