Table Row Counter
by Dave Mednick
HTML
<button id="rowCount">Count 'Em</button>
<br />
<table id="myTable"></table>
JavaScript
$(function () {
$('#rowCount')
.button()
.click(function () {
alert("Rows = " + ($('table#myTable tr:last').index() + 1));
})
});