posted 18 years ago
Yes, you can do this. How to do it depends on how you design the page. One way to do it would be to have the onclick event attached to the table row (i.e. the <tr>) set some hidden field to indicate which row was selected and then change the backgroud so that it looks highlighted. You could then have two different buttons, one to edit HR Details and the other to edit Salaray details. The onclick even for each of the buttons would change the action and then submit, just as you're doing now with the onclick event of the <tr> element.
[ March 02, 2007: Message edited by: Merrill Higginson ]