title: How to get a cell's location
body: <p>I'm writing a script which manages a very large table. When a user clicks a table cell, I would like to know which cell they clicked.
  e.g</p>
  
  <pre><code>--------------
  |     |      |
  |     | Click|
  --------------
  </code></pre>
  
  <p>should give me a cell reference of (1, 1).</p>
  
  <p>Any way I could do this with javascript. The page it's running on uses jquery for other purposes, so any jquery based solutions are good aswell.</p>
  
  <p>EDIT: To clarify, the top left cell is (0, 0). For performance reasons, the event needs to bound to the <em>table</em>, not the tds.</p>