M
Mark
Hi - I have a droplistbox which has some items in the form of a tree
type structure (file system) - this is how it appears exactly - the
value attribute is just a consecutive number:
Root
Root | Business
Root | Business | Excel
Root | Business | Excel | Formulas
Root | Business | Excel | Formatting
Root | Fun
Root | Fun | Music
Root | Fun | Music | MP3s
Root | Fun | Music | CDs
If I click on a listitem (for example: Root | Business | Excel |
Formatting) - I want to be able to take the string Root | Business |
Excel | Formatting - and select automatically the Root, Root | Business
and Root | Business | Excel list items too - in other words, providing a
complete path back to the root - without affecting the other list items.
Is there a way in Javascript to take the listitem I've selected, split
it by the | character so I end up with an array like:
arr1("Root |" , "Root | Business |" , "Root | Business | Excel |")
...and then iterate through the list items, and select them if they
match an enty in my array?
Thanks for any help with this,
Mark
type structure (file system) - this is how it appears exactly - the
value attribute is just a consecutive number:
Root
Root | Business
Root | Business | Excel
Root | Business | Excel | Formulas
Root | Business | Excel | Formatting
Root | Fun
Root | Fun | Music
Root | Fun | Music | MP3s
Root | Fun | Music | CDs
If I click on a listitem (for example: Root | Business | Excel |
Formatting) - I want to be able to take the string Root | Business |
Excel | Formatting - and select automatically the Root, Root | Business
and Root | Business | Excel list items too - in other words, providing a
complete path back to the root - without affecting the other list items.
Is there a way in Javascript to take the listitem I've selected, split
it by the | character so I end up with an array like:
arr1("Root |" , "Root | Business |" , "Root | Business | Excel |")
...and then iterate through the list items, and select them if they
match an enty in my array?
Thanks for any help with this,
Mark