I have a table with a series of buttons down the left side. These buttons have an onClick handler that selects items and adds them to that line in the table. I am trying to change the function of the button so that it edits the line of data after it has been used to add the line of data.
linebutton.value='Edit'; // i.e. change the button label (this works)
// This succeeds in changing the
// the code stored in the onclick
// attribute, but it will not execute
When I click on the button (now labeled 'Edit'), nothing happens. I suspect the event handler must be re-activated somehow, but I can't seem to figure it out. Would someone please give me some guidance?