[Solved] How to use Element Selector with Class Selector in Jquery [closed]


There is no need to iterate, jQuery will do this for you very conveniently.

It’s not very clear from the question what exactly you want to do, but you can:

  • Switch .plus to .minus with

    $(".plus").toggleClass("plus minus")
    
  • Toggle .plus and .minus on all elements that have either with

    $(".plus, .minus").toggleClass("plus minus")
    

1

solved How to use Element Selector with Class Selector in Jquery [closed]