How to remove class from all elements jquery

后端 未结 6 1245
野性不改
野性不改 2021-01-31 23:58

I am changing the class of an element with the following

  $(\"#\"+data.id).addClass(\"highlight\")

Given the list below.

 <         


        
6条回答
  •  既然无缘
    2021-02-01 00:58

    try: $(".highlight").removeClass("highlight");. By selecting $(".edgetoedge") you are only running functions at that level.

提交回复
热议问题