问题
This is followup question from my previous question "Toggle button inside accordion using jquery" Although did got reply for my question (I have fixed my code to reflect the same) but still the code is not working.
I am getting the contents dynamically in the accordion using ajax call. I tried to put the code inside the accordion click function. But I am not able to toggle the contents. When I open the accordion options I can still see the contents. Any suggestions what is going wrong?
I did checked on firebug and when I click on accordion it does goes to hide segment. While I click on the hide button it does execute the toggle statement. But I can still see the contents. (Which were supposed to be hidden).
回答1:
Thanks all for comments. I figured it out. This was my typo mistake I did not declared class test as div once fixed its working.
来源:https://stackoverflow.com/questions/11827631/toggle-code-not-working-when-inserted-in-accordion-click-function-using-jquery