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
You were almost there. Just access it directly:
alert(this.id);