how to get each cell id in a table

how to get each cell id in a table

Hello,

i want to allocate an id to each cell in a table based on appropriate row and column. after that when clicked on the a cell i want to show row and column id in alert(). any help will be greatly appreciated.