siblings
$('#ex1').children().click(function(){
$(this).siblings().css({'background':'#007374'});
$(this).css({'background':'none'});
});
next
$('#ex2').children().click(function(){
$(this).next().css({'background':'#007374'});
});
nextAll
$('#ex3').children().click(function(){
$(this).nextAll().css({'background':'#007374'});
});
prev
$('#ex4').children().click(function(){
$(this).prev().css({'background':'#007374'});
});
prevAll
$('#ex5').children().click(function(){
$(this).prevAll().css({'background':'#007374'});
});