This works, but there could be a more elegant way to do it. $(document).ready(function() { var cnt;
$("tr").each(function() { cnt = 0; $(this).find("td").each(function() { $(this).find("a").each(function() { alert(cnt) }); cnt++; }); }); }); On Sep 6, 12:28 pm, din <dingl...@gmail.com> wrote: > <TR> > <TD>1</TD> > <TD>JM-53</TD> > <TD>--</TD> > <TD>--</TD> > <TD>--</TD> > <TD><A href="#">ROHs</A></TD></TR> > <TR> > <TD>2</TD> > <TD>JM-54</TD> > <TD><A href="#">ROHs</A></TD> > <TD>--</TD> > <TD>--</TD> > <TD><A href="#">ROHs</A></TD></TR> > > I want the value of "href" in first tag A is equal to "JM-53_5.htm". > And the the value of "href" in 2nd tag A is equal to "JM-54_2.htm". > The value of "href" in 3rd tag A is equal to "JM-54_5.htm". > HOW can I get the current Index of the tag A,and HOW TO get the value > of the current 2nd tag TD. > > MANY MANY THANKS~~~~