jquery remove class

前端 未结 4 2080
礼貌的吻别
礼貌的吻别 2021-01-21 00:12

i got a class,

div.domtab div{
        clear:both;
        width:auto;
        background:#eee;
        color:#000;
        padding:1em 1.5em;
    }
         


        
4条回答
  •  我在风中等你
    2021-01-21 00:42

    You just missed out the line that is actually correct.

    $('#tag1').removeClass('domtab');
    

    The code above should do the trick.

提交回复
热议问题