Multiple Fields on single mouse click
I need to get the clicked on field plus another field in the current row of a table....
$(function() {
$(".trclick").live("click", function() {
$("#flightno").val($(this).text()); //.children("a").text());
});
})
Here is the table code:
echo("<td class='tdclick'><a href='#'>$fnum</a>");
echo("<td>$tail</td>");
echo("<td>$stdate</td>");
echo("<td class='trclick'><center><a href='#'>$rev</a></center></td></tr>");
The class of a column in the table is assigned the class - trclick. I need to get the value of $fnum when the $rev field is clicked. How can I get the value of $fnum when $rev is clicked?
Thanks,
Bill S.