I have made a html table in asp.net. The user clicks on a row and the corresponding page for that record is opened. How do i know which row of the table has the user selected?
Asked
Active
Viewed 1,498 times
2 Answers
0
http://www.electrictoolbox.com/jquey-make-entire-table-row-clickable/
$(document).ready(function() {
$('#example tr').click(function() {
alert('clicked');
});
});
How to tell which row number is clicked in a table?
without jquery
-
-
actually what i want to do is to click on a row and open page with that records details. so i suppose i will have to save the details in a session variable? and how do i go to the next page using your above code? – Seema Apr 02 '13 at 20:02
-
0
try to set custom attribute of id to row(html) by assinging database id value to it. by clicking on that row , you can get access that custom attribute by $(this).attr('your_custom_attr') and you can use that value to make ajax GET call.

Niel_patel
- 74
- 8