elpatator Mon, 28 Dec 2009 07:17:15 -0800
Never mind, found it out by myself:
alert($(this).parents("tr:first").find("input[type=text]").length);