Hi,
I have a hierarchical list:
I want to write some Javascript which takes an id and cascades up the list.
For example:
If 7.2.2 is selected the javascript needs to take the
string '7.2.2' remove the last '.xx' and set the tickbox (7.2) to true.
It then takes '7.2' removes the same
pattern and sets the tickbox (7) to true.
It needs to continue doing this until there are no more strings that match '.xx'
I have the recursive function i'm just not so good on the regEx or subString parts.
Any ideas?
Thanks,
Liam
[originally posted on jforum.net by liam]