I have a table that is populated by a SQL query and on each row is an icon of an envelope. The icon is a link to a Javascript popup window so the user can send an email message to the person on that row of the table. The icon needs to change images when the email message is sent, and I was able to do that as long as the person being sent the email is on the top row of the table. If the recipient is lower than the top row, the image on the top row changes.
What I need to know is how can I access the image on a selected row to change the image.
Here is the code I have now:
{
parent.window.opener.document.getElementById(’emailIcon’).src =”images/emailIcon.jpg”
}
Any help someone could offer would be greatly appreciated.