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

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -