On click div change it child css in jquery

## On click ".xc-category" , Finds <div class="catbox"> 

in ".xc-category" and changing the background-color 

<script>

$(".xc-category").click(function(){

var dis = this;

$("#Step1").find('div.catbox').css('background-color','');

$(dis).find('div.catbox').css('background-color','#C3E7FF');

});

</script>

Leave a Comment