<div>
  <ul>
    <li>tes</li>
    <li>tests</li>
    <li>test</li>
    <li>ste</li>
    <li>stetes</li>
  </ul>
</div>
<div class="alert">
  test
  <div> CLICK</div>
  <div> ME</div>
</div>
body {
  font-size: 22px;
}
$('body').on('click', function(e)
{
  console.log(e);
  let target = $(e.target);
  
  if (target.parents('.alert').length > 0 || target.hasClass('alert')) {
    alert("ALARM");
  }

});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js