toggle code not working when inserted in accordion click function using jquery [closed]

孤人 提交于 2019-12-13 04:53:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!