How to toggle element visibility without jQuery?

后端 未结 4 1397
猫巷女王i
猫巷女王i 2021-01-12 22:26

I\'m writing an auction template for eBay, hoping that eBay would allow it. Apparently they don\'t because jquery has things like string.replace() etc.

The code is v

4条回答
  •  被撕碎了的回忆
    2021-01-12 22:59

    You could use classList.toggle on your element:

    
    
    
    
    Toggle element
    
    

    lorem ipsum quid modo tralala

提交回复
热议问题