jQuery accordion() not working

后端 未结 3 586
我寻月下人不归
我寻月下人不归 2021-01-16 02:02

My jQuery accordion() is not working on my HTML paragraphs. Where did I go wrong?

simple.html



            


        
3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-16 02:21

    Two problems: You are not including the jQuery UI CSS, also your scripts must be included your . Use this:

    
      My Title
      
      
      
      
    
    

    and remove the scripts from the bottom of your page.

    Fiddle: http://jsfiddle.net/cxJW6/ (This doesn't mean much because your problem was with including jQuery+jQuery UI in your page)

提交回复
热议问题