I am designing a page that retrieves data from database and displays it in tabular format in brief. There is a hyperlink and clicking on it displays the details of a record.
here is some code
for (var i = 0; i < n; i++) {
result = result + "<tr><td><a href='javascript:void(0)' class='detailStud' iditem='"
+ response.studs[i].regd+"'>Details</a></td></tr>";
}
on JQuery side
$('.detailStud').click(function(){
var val1= $(this).attr('iditem');
alert(val1);});
But this is not working.... please help ....