Javascript keeps a div hidden until you click a button, need help modifying

前端 未结 2 2028
迷失自我
迷失自我 2021-02-04 07:33

Basically, my code right now keeps a few of the divs I have on my website hidden and then when you click on a link, it makes the divs appear.

I need help so that it so t

2条回答
  •  盖世英雄少女心
    2021-02-04 08:29

    You could do like this, if you want to display and hide particular div on click of button.

    
    
    
    
    
    
    
    

    UPDATE: Pass the other div id which you want to make disappear on click of div one. Please update your code with below's code.

    SCRIPT

    
    

    HTML

    This is a link

    About

提交回复
热议问题