I have a table in my MVC application.I want to get the id of the selected row.I captured the click event of tr using jQuery. The table sample is shown below
$(document).ready(function () {
$('#resultTable tr').click(function (event) {
alert($(this).attr('id')); //trying to alert id of the clicked row
});
});