jQuery/Javascript - Fade in div onclick fade out another doesn't work

前端 未结 1 1095
轮回少年
轮回少年 2021-01-27 10:28

I want to pop up a menu on click of a div and I got it all working in this Fiddle: http://jsfiddle.net/EhtrR/825/ but I cant manage to make it work on my code.

HTML:

1条回答
  •  长情又很酷
    2021-01-27 11:13

    Add this css

    
    

    This js codes

    
    
    

    And you HTML

      
    1
    2

    It should work. Most probably you did not included jQuery library. I added it.

    
    

    Using it should solve your porblem probably.

    0 讨论(0)
提交回复
热议问题