title: How to get a <td> 's position in a table using JQuery?
body: <p>For example:</p>
  
  <pre><code>&lt;table&gt;
  &lt;tr&gt;&lt;td&gt;1,1&lt;/td&gt;&lt;td&gt;2,1&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;2,1&lt;/td&gt;&lt;td&gt;2,2&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I want to using the following function:</p>
  
  <pre><code>$("td").click(function(){
  alert(xxxx)
  })
  </code></pre>
  
  <p>to get the <code>&lt;td&gt;</code> `s position when clicked, but how?</p>