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.
Thanks
As you have suggested I have isolated the text in the span tag
I am still not able to understand when you said get reference to element and change its innerHTML, when you said reference to element which one did you mean? should i write javascript..I am kind of totally confused, please give me some examples..