Can some one help me in writing the javascript funtion for toggle rows. I have 17 products in html check box, for each products there are subproducts for example Product 1 See all subproducts [Item1 Item2 Item3 Item4 Item 5 Hide all subproducts] when I click See all subproducts it has to display all the items with hide all subproduct, and when I click Hide all subproducts it has to show Product 1 See all subproducts
Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extermely hard to read and many people that might be able to help you will just move along. Please read this for more information.
You can go back and change your post to add code tags by clicking the .
Bhargavi kurra, Please read this for information on how to properly post code. I will not read code that has not been posted properly in order to preserve its formatting.
If you want people to take the time to help you, you've got to put some effort into it yourself. [ March 14, 2008: Message edited by: Bear Bibeault ]
First off, what are you using to debug this on your own? I would recommend that you try Firefox along with Firebug (http://www.getfirebug.com/). This approach sure seems easier than waiting for somebody on a forum to debug your code.
The code 'document.getElementById("show")' seems a little odd. I would wonder if the code is bombing there after processing the first node.
- Brent
snakes are really good at eating slugs. And you wouldn't think it, but so are tiny ads:
a bit of art, as a gift, that will fit in a stocking