$(document).ready(function(){   $("span").parents(".item").css({"color": "red", "border": "2px solid red"}); });

bootstrap 4 parents