I am using below jquery to get selected row id
<script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
//MainContent_tbl
$(document).ready(function () {
$('#MainContent_tbl tr').click(function (event) {
alert(this.id); //trying to alert id of the clicked row
});
});
</script>
My problem is that my table(MainContent_tb) is not static, i need to pass this as variable, any suggestion or remarks would be appreciated.
This is what you are looking for!