Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <div class="main-parent">
    <div class="child-description">
        <h4 class="title">Title</h4>
        <p class="subtitle">Subtitle</p>
        <p>Lorem ipsum paragraph...</p>
    </div>
  </div>
  
<script src="https://code.jquery.com/jquery-git.js"></script>
  <script>
    $('.main-parent').mouseover(function(e) {
      if(e.target.className == 'subtitle') {
        console.log("Child mouseover!");
        return;  // child mouseover, ignore
      }
      
      console.log("Parent mouseover!");
      
      return true;  // parent mouseover, activate some behavior
    });
  </script>
  
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
HoldOffHungerpro
0viewers