HighDots Forums  

Re: Hiding <ul> elements within a given <div>

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: Hiding <ul> elements within a given <div> in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Manzoorul Hassan
 
Posts: n/a

Default Re: Hiding <ul> elements within a given <div> - 04-05-2004 , 09:05 PM






"CJM" <cjmwork (AT) yahoo (DOT) co.uk> wrote

Quote:
Thanks Ivo...

I'm embarrassed it was such a simple change!

Works fine now...

tx

Chris

"Ivo" <no (AT) thank (DOT) you> wrote in message
news:405042a2$0$63289$cd19a363 (AT) news (DOT) wanadoo.nl...
"Ivo" <no (AT) thank (DOT) you> wrote in message
Sorry, "getElementByID" should read "getElementById" with a capital "I"
and
lowercase "d".
Ivo


Could you post the full code. I am trying to do something similar, but
have no idea where to start (

Basically, I have the following list (with sub-lists)

* Item 1
* Item 2
* Item 3

When I click on each of the items, I would like that item to be
expanded only. So clicking on Item 2 would give me the following list.

* Item 1
* Item 2
* Item 2a
* Item 2b
* Item 3

- manzoor


Reply With Quote
  #2  
Old   
Matt Kruse
 
Posts: n/a

Default Re: Hiding <ul> elements within a given <div> - 04-05-2004 , 10:15 PM






"Manzoorul Hassan" <manzoor (AT) intrnauts (DOT) com> wrote:
Quote:
Could you post the full code. I am trying to do something similar, but
have no idea where to start (
Basically, I have the following list (with sub-lists)
* Item 1
* Item 2
* Item 3
You may want to check out my tree script at
http://www.mattkruse.com/javascript/mktree/

It will create a dynmic tree structure from a pure, empty <ul> <li> </ul>
structure. Older browsers see the regular unordered list, and newer browsers
will collapse the contents into the dynamic tree.

--
Matt Kruse
Javascript Toolbox: http://www.mattkruse.com/javascript/




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.