[jQuery] Detect child number of an element?

[jQuery] Detect child number of an element?


Is it possible to detect the 'child number' of an element on click?
For example, say I have a table with 10 rows. If I click on the 7th
row, is it possible to obtain the number 7 simply? Currently I have a
click event attached to every table row, with something along the
lines of:
$('table#id tr').click(function(){
...
})