jquery - grab all divs which does not have a class -


I am trying to capture the div elements which do not have a specific class, which < Code> active .

The code is:

  $ (currentcontentive) .addClass ('active');  

Now, there is also a square slidingDiv in currentContainerDiv and now I want to capture all the other div slidingdiv , where active is not attached

How can it be obtained?

I tried it, but it does not work:

  $ ('slidingDiv'). No. (Current Contraction) .removeClass ('fried');  

Try it:

  $ (' SlidingDiv: no (.active) '.) RemoveClass (' folding ');  

As you said in "Current ContainerDive" also there is class = "Sliding Div" so there is no need to add any filter for this.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -