Using JQuery how to show and hide different div's onClick event

前端 未结 12 713
死守一世寂寞
死守一世寂寞 2021-01-03 03:34

I would like to show a div based on the Onclick event of an link.

First Click - Show div1
Second Click - Hide remaining div\'s and Show div2
Third Click

12条回答
  •  一向
    一向 (楼主)
    2021-01-03 04:04

    First You have to add query basic file:

    
    

    Then you have to add the following code:

    
    

    Add the code above into the header portion and the code below in the body portion.

    
    
    

    The code is ready for the different image click for show and hide div.

提交回复
热议问题