I'm trying to change the color of some p elements when they're clicked and while they're in that state, but when another p is clicked I need to change the color of the previous p element back to normal, just wondering how it's possible to do that.
thanks
$('.slide span p').click(function() {
var p =$(this);
p.css('color','#999');
//not working with :not()
p:not().css('#color','#ffffff');
});