How to block click() on link inside of the element
<p>I wasn't sure how to title this issue, but let me explain. I have a box with content, links, and a checkbox inside of it. If you click anywhere in the box, it will mark the checkbox. It will also do this if you click a link. How do I disable the checking of the box if you click a link, instead of the box? (confusing I know, see code snippet below)</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>$("div").on("click", function() {
  var $checkbox = $(this).find(":checkbox");
  $checkbox.prop("checked", !$checkbox[0].checked);
});</code></pre>
<pre class="snippet-code-css lang-css prettyprint-override"><code>div {
  width: 300px;
  padding: 20px;
  margin: auto;
  background: #999;
  color: #FFF;
}
input {
  display: block;
  height: 50px;
  width: 50px;
  margin: auto;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
&lt;div&gt;
  &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sit amet urna risus. Maecenas egestas pellentesque sapien blandit hendrerit. Morbi tellus felis, elementum ut ligula eu, convallis luctus ante. &lt;a href="https://www.google.com" target="_blank"&gt;Nulla molestie mollis aliquam.&lt;/a&gt; Maecenas
    nisl nulla, fringilla et placerat vitae, tempus ut urna.&lt;/p&gt;
  &lt;input type="checkbox" name="check[]" class="check"&gt;
&lt;/div&gt;</code></pre>
</div>
</div>
</p>