The code actually hides the content of the table when the image is clicked. and displays the content when the image is again clicked. What I want is the change in the text next to that, it should say Hide Table when the content of the table is displayed and Show Table when the content of the table is hidden. How do I go about doing this? need some ideas.
Get a reference to the element and set its innerHTML property to whatever you want.
Joined: Feb 23, 2009
As you have suggested I have isolated the text in the span tag