title: Preventing checkbox from being deselected when click trigger is on parent element
body: <p>Kind of a funny problem here.</p>
  
  <p>I want to check the checkbox when the parent div is checked, but it is DESELECTING the checkbox when the CHECKBOX is clicked on ;)</p>
  
  <p>It works fine when the name is clicked on. How do i solve this?</p>
  
  <pre><code>//layout
  &lt;div class="parent"&gt;
     &lt;input type="checkbox"/&gt; &lt;a&gt;Name&lt;/a&gt;
  &lt;/div&gt;
  
  //check the box when parent div is clicked
  $(".parent").click(function(event){
     event.preventDefault();
     checkbox=$(this).find("input:checkbox");
     checkbox.attr("checked","checked");
  });
  </code></pre>