What might cause last item in a jquery style accordion not to close?
Markup works fine if I pull the code outside my app and test it, however, once its inside my app, the last item in my accordion will open onclick, but not开发者_如何学Python close.
Hard to tell based on the as far given information. You may want to check if the returned HTML is syntactically valid and syntactically suits in the place where it is been inserted. E.g. are all tags correctly nested and opened/closed? That is namely a pretty common cause of those kind of problems.
精彩评论