Soldato
- Joined
- 5 Dec 2003
- Posts
- 2,716
- Location
- Glasgow
Hey I am just learning myself some web designery in work. I am getting my head around Javascript, DOM, AJAX, PHP and CSS kinds of stuff.
I am wanting to have some text that the user can click that says "hide" and will collapse a DIV but keep the same text visible but change it to "show" and then show the DIV again.
I know it is something to do with changing the visibility in CSS to hidden or visible and then getElementById I imagine for the text but can't seem to get that to change and also work to show the div.
I am wanting to have some text that the user can click that says "hide" and will collapse a DIV but keep the same text visible but change it to "show" and then show the DIV again.
I know it is something to do with changing the visibility in CSS to hidden or visible and then getElementById I imagine for the text but can't seem to get that to change and also work to show the div.