Jquery dynamically add to accordion?

If you remove the height attribute on the accordionResizer (height:220px), everything works as it should. It looks like the height you've picked is too low for the contents - hence the overflow If you need something other than the default height to fit the contents, try dynamically assigning the height of the accordionResizer each time you add a new section something like... var NewHeight = ($("#accordion h3").size() * $("#accordion h3:first").height()) + 50px; // add 50px to allow room for the section contents. $("#accordionResizer").

Height(NewHeight).

If you remove the height attribute on the accordionResizer (height:220px), everything works as it should. It looks like the height you've picked is too low for the contents - hence the overflow. If you need something other than the default height to fit the contents, try dynamically assigning the height of the accordionResizer each time you add a new section.

Something like... var NewHeight = ($("#accordion h3").size() * $("#accordion h3:first").height()) + 50px; // add 50px to allow room for the section contents. $("#accordionResizer"). Height(NewHeight).

JQuery UI Accordion takes the element size from when it's called. You'd have to call some kind of refresh method on it.

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