Samsam,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css"> a div.noactive{
background-color: rgba(211, 211, 211, 1);
}
a div{
background-color: rgba(238, 232, 170, 1);
height: 100px
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
function st(event) {
event.preventDefault();
if(!$(event.target).closest(".noactive").length) {alert('Ура');}
};
</script>
</head>
<body>
<a href=# onclick="st(event)">
<div>1</div>
<div>2</div>
<div class=noactive>3</div>
</a>
</body>
</html>