title: Determining if mouse click happened in left or right half of DIV
body: <p>I was wondering if it's possible to calculate if a mouse click happened over the left or right half of the div element:</p>
  
  <pre><code>$("div").click(function(e){
   // calculate if click happened on left or right half
  });
  
  
  &lt;div&gt;Variable Content&lt;/div&gt;
  </code></pre>
  
  <p>Was hoping there would be a way to get the relative coordinates and relate them to the width of the div?</p>