I know what I want but I have trouble googling it.
I want to have a little icon like a + icon beside a paragraphic of text, so when clicked, will hide the paragraph beside it. What is that called or how is it done?
Thanks.
hide icon
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
More on what d11 was talking about can be found here:
http://www.stuffandnonsense.co.uk/archi ... ields.html
http://www.stuffandnonsense.co.uk/archi ... ields.html
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
just set the paragraph's 'display' property to 'none' 
for e.g. you have a para with id = hideMe (defining id is important)
Use the link, and Voila! it's gone.
for e.g. you have a para with id = hideMe (defining id is important)
Code: Select all
<p id='hideMe'>I don't want this. Go away. Shooo</p>
<a href="e;#"e; onclick='document.getElementById("e;hideMe"e;).style.display = "e;none"e;'>Hide It!</a>