using variables in the $(...) selector function

using variables in the $(...) selector function

i am trying to get a hold of a td (specified by the position startTd) within a table and am using the following code:

$('#year tr td:eq(startTd)')

but the startTd variable is not read properly...how do i get around this?

thanks!