//Here is Explaination of Selectors//.a .b .c = selects nested child c which is inside of div a and b//.a .d = selects nested child d which is inside of div a//.f = selects direct element ie div f which is outside of div a and b$('.a .b .c , .a .d, .f').css('background-color', 'grey');