I have a problem where I am supposed to make a 3x3 table with columns and rows numbered 1,2,3. Each table cell has to have identical width and height of 50 pixels and initially all cells are empty. That part I have done.
However, clicking on table cell that is at the intersection of column number i and row number j should display the value of the sum i+j at the center of this cell. This should work by clicking on any cell point, that is, anywhere within that cell.
How can I add that functionality to my table?
Any tips are appreciated. I just need to know what technique to use, I can probably implement it by myself.
Solution attachment has been tested working in Firefox (v11.0) and Opera (v11.62) browsers, but it should work with any standard browser that supports the HTML element property used in the solution.