how to select all elements except the div "hola" and childrens
<body>
<div id="hola">
<div>example</div>
<span>example</span>
</div>
<div>not selected</div>
<span>not selected</span>
</body>
$(document).ready(function() {
$(":not(#hola > *)").click(function(){
console.log("sdf");
});
});