hi all .. i trust you are all well
Ok not to sure how to describe what Im after here but will give it my best go..
I have a html table with 4 rows .. let say it looks like this ..
ROW 1
ROW 2
ROW 3
ROW 4
now, i have some more rows which i want under those as this .
ROW 1
sub row 2
sub row 2
sub row 3
sub row 4
ROW 2
sub row 2
sub row 2
sub row 3
sub row 4
ROW 3
sub row 2
sub row 2
sub row 3
sub row 4
ROW 4
sub row 2
sub row 2
sub row 3
sub row 4
I can do that, obviously easy in HTML .. however I want to use Java script to hid e the sub rows when the page loads initially.. then when they click each main row link with an OnClick event they get the sub rows expanded for each row..
I have looked at using divs and hidding them and making them visiable on click however the problem is they are displayed on top of the other data on page.. i would like the table to expand to fit the rows.
Anyone have any good links on this sort of thing, or any pointers?
cheers,
sir p