I have to admit: I am pretty new to javascript & css & that sort of thing. I am a vba programmer so can follow through a script, but building my own is something else!
I am trying to create a page with a table on it, but when you click the title, it expands to show a load of hidden rows.
something like:
Total1 5 2 3 4
Total2 1 4 5 1
then when total1 is clicked:
Total1 5 2 3 4
4 2 1 1
0 0 1 1
1 0 1 2
Total2 1 4 5 1
and so on. When you click total1 it hides total's figures. When you click total2 it shows it's subtotals...and so on.
I have found some script that uses check boxes to do a similar sort of thing, but I don't know enough to adapt it to do what I want.
The data will be static and there is no server, so ASP and suchlike is out of the question.
Can anyone help?
Ben ----------------------------------
Ben O'Hara
bo104@westyorkshire.police.uk
----------------------------------
I am trying to create a page with a table on it, but when you click the title, it expands to show a load of hidden rows.
something like:
Total1 5 2 3 4
Total2 1 4 5 1
then when total1 is clicked:
Total1 5 2 3 4
4 2 1 1
0 0 1 1
1 0 1 2
Total2 1 4 5 1
and so on. When you click total1 it hides total's figures. When you click total2 it shows it's subtotals...and so on.
I have found some script that uses check boxes to do a similar sort of thing, but I don't know enough to adapt it to do what I want.
The data will be static and there is no server, so ASP and suchlike is out of the question.
Can anyone help?
Ben ----------------------------------
Ben O'Hara
bo104@westyorkshire.police.uk
----------------------------------