decomplexity
IS-IT--Management
I want to display an HTML table of items for auction (one item per row) that people can bid for. The rightmost cell in each row will contain a BID NOW link or button.
When someone clicks BID NOW, what please is the easiest way to identify the relevant row number (so that I can then retrieve into a Javascript array the contents of that row)
The document.getElementById('<tablename>').rows[<n>].cells appears to allow me to select the contents of row[n], but how do I identify which row ['n'] has been selected as a result of the onclick event?
When someone clicks BID NOW, what please is the easiest way to identify the relevant row number (so that I can then retrieve into a Javascript array the contents of that row)
The document.getElementById('<tablename>').rows[<n>].cells appears to allow me to select the contents of row[n], but how do I identify which row ['n'] has been selected as a result of the onclick event?