I have changed things a little now. Here is an example of my current
code:
$('#edit').click(function() {
var clickedID = $('.clicked').id;
transNo = ?; //This is where I need to retrieve the row's id
window.location = "GL0002T?action=R&transBatchNo=<!--%batch%--
>&transNo="+transNo;
});
<tr id="1" class="row">
<td id="Sequence1" style="width: 80px;">1</td>
<td id="Account1" style="width: 85px;">400-04</td>
<td id="Reference1" style="width: 100px;">Ref2</td>
<td id="Journal1" style="width: 114px;">01</td>
<td id="Description1" style="width: 250px; text-align: left;">Desc2</
td>
<td id="Debit1" style="width: 124px; text-align: right;">100.00</td>
<td id="Credit1" style="width: 124px; text-align: right;border-
right: none;">.00</td>
</tr>
<tr id="2" class="alt row">
<td id="Sequence2" style="width: 80px;">2</td>
<td id="Account2" style="width: 85px;">400-04</td>
<td id="Reference2" style="width: 100px;">Ref2</td>
<td id="Journal2" style="width: 114px;">01</td>
<td id="Description2" style="width: 250px; text-align:
left;">Desc2b</td>
<td id="Debit2" style="width: 124px; text-align: right;">.00</td>
<td id="Credit2" style="width: 124px; text-align: right;border-
right: none;">100.00</td>
</tr>
<input type="button" id="edit" value="Edit Selected">
When a row is clicked, I add a class of "clicked" to the row. After
the row is clicked, I click on the Edit button and the .click()
function is executed. I need to be able to retrieve the id of the
clicked row and pass it as a parameter to another program. I hope
this clarifies things.
Thanks