Reset/remove CSS styles for element only

前端 未结 14 864
长情又很酷
长情又很酷 2020-11-22 00:52

I\'m sure this must have been mentioned/asked before but have been searching for an age with no luck, my terminology must be wrong!

I vaguely remember a twee

14条回答
  •  时光说笑
    2020-11-22 01:35

    if you set your CSS within classes, you can easly remove them using jQuery removeClass() Method. The code below removes .element class:

        
    source
    destination
      

    If no parameter is specified, this method will remove ALL class names from the selected elements.

提交回复
热议问题