Now, for the sake of brevity…*i omitted some other stuff that is happening when they’re clicked on. The problem is that the click event for .unchecked_container is firing fine and the class is changed, BUT when clicked on again…*the ‘.checked_container’ click event is NOT firing.
I think this is pretty basic, but for some reason it’s not working.
The event for .unchecked_container is not firing because at the moment the script is run there is no element with that class yet. There only is an element with that class after an element with .checked-container is clicked, but then it’s too late.
You might want to look at .live() to solve this. Something like