[RESOLVED] jQuery :not isn't working
I have this, but it doesn't work:
I don't want to fadeIn the child paragraph, but I do want to fadeIn all of the other children. The code above just applies fadeIn to everything. I tried using .not() too, but that didn't change anything.
<meta charset="utf-8" />
<div id="child_1">#child_1 --------> fadeIn</div>
<div id="child_2">#child_2 --------> not fadeIn</div>
<div id="child_3">#child_3 --------> fadeIn</div>
First of all, it didn't work. I can't see why. The other problem is that I have $.ajax append to the div after the fadeOut it is supposed to fadeIn after that. I'm just going to add another parent.
1. first of all, it works in Opera, IE, Firefox and Safari.
2. nobody knows what you have in your code if you didn't show it
Sorry, but I figured it out:
Instead of using :not or .not() I put all of the other children in a new container, and addressed that instead.
<div id="otherchildren"> <!-- NEW -->
<!-- Other Children -->
Sorry, I marked this resolved.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread