call the same jQuery function in multiple buttons

后端 未结 10 2146
星月不相逢
星月不相逢 2020-12-01 11:12

I am not really familiar with jQuery. I have this code that I downloaded to create a fade in/fade out popup form. Here\'s the code:



        
10条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-01 11:31

    You can use css class name instead of id to achieve it like below

    
    

    and your html of the buttons

    
    
    
    

提交回复
热议问题