jQuery click / toggle between two functions

前端 未结 10 1664
野的像风
野的像风 2020-11-22 07:58

I am looking for a way to have two separate operations / functions / \"blocks of code\" run when something is clicked and then a totally different block when the same thing

10条回答
  •  情深已故
    2020-11-22 08:48

    modifying the first answer you are able to switch between n functions :

    
    
     
      
      
    
    
      my stupid example
    
     
     
     
    
     
    

提交回复
热议问题