Using jQuery to change background of parent also changes the background of the child element

$("#target1").parent().css(“background-color”,“red”);

CSS ---- CASCADING style sheet

Keyword: Cascading… down the line…

Just apply a separate background-color to the child element.