View Single Post
Old 08-17-2007, 09:01 PM   #1 (permalink)
misho
New Member
 
Join Date: Mar 2007
Posts: 11
Default JavaScript: change text in a table cell

Let's say I have a page like this:

Code:
<html><body>
<table border="1"><tr>
    <td>
        left cell
    </td>
    <td>
        right cell
    </td>
</tr></table>
<a href="javascript:something()">Change Text</a>
</body></html>
What would I have to do in order to modify the text inside each of those cells when the link is clicked, using JavaScript, without reloading the entire page?
__________________
- Misho
misho is offline   Reply With Quote