toggle show/hide div with button?

后端 未结 8 2001

Hopefully this is an easy question. I have a div that I want to toggle hidden/shown with a button

8条回答
  •  无人共我
    2020-11-22 14:34

    This is how I hide and show content using a class. changing the class to nothing will change the display to block, changing the class to 'a' will show the display as none.

    
    
    
    
    
    
    
    
    
    

    Testing

提交回复
热议问题