function whichRow(obj) {
var par = obj.parentNode;
var par1 = par.parentNode.cells[1].innerHTML;
alert(par1);
return false;
}
use the above code inside HEAD tag
the page will be displayed in the browser as below
if u click on the button it will display name as message
No comments:
Post a Comment