JQuery to hide and show divs with an indicator?

You could use the toggleClass method to set the class on the click handler. To either up or down. Each class would have the appropriate background image set.

You could use the toggleClass method to set the class on the click handler. To either up or down. Each class would have the appropriate background image set.In your click handler $('.

Collapser'). ToggleClass('up down'); and your html would look like this.

1. This is the jquery reference api.jquery. Com/toggleClass – Biswanath Dec 28 '10 at 5:08 +1.

This is actually very elegant. – karim79 Dec 28 '10 at 5:11 Thanks, this is a slick way to do it. I didn't see toggleclass before.

– songdogtech Jan 4 at 20:48.

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