Jquery accordion header?

Your update code needs to be changed as follows: $('#headeronline a'). Text("Online (" + onlinecount + ")"); $('#headeroffline a'). Text("Offline (" + offlinecount + ")") The headeronline and headeroffline weren't being referred to as IDs and the text needed to be changed in the link, not instead the header.

Your update code needs to be changed as follows: $('#headeronline a'). Text("Online (" + onlinecount + ")"); $('#headeroffline a'). Text("Offline (" + offlinecount + ")"); The headeronline and headeroffline weren't being referred to as IDs and the text needed to be changed in the link, not instead the header.

Thank you very much that did the trick – GX. Oct 26 '09 at 15:55.

Now let's see the power of jQuery's chainability. With just several lines of code, I can make the box fly around with scaling and fading transition. Here is a sample of accordion.

The first line will add a CSS class "active" to the first element within the (the "active" class will shift the background position of the arrow icon). The second line will hide all the element that is not the first within the . When the element is clicked, it will slideToggle the next and slideUp all its siblings, then toggle the class="active".

This example is very similar to accordion#1, but it will let you specify which panel to open as default. In the CSS stylesheet, set . Accordion p to display:none.

Now suppose you want to open the third panel as default. You can write as $(".

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions