Atrybut selektorów JQuery kończy się
/*
<div class="" id="" data-attr="background-black">
*/
$('div[data-attr$="-black"]').css("background", "#000000")
Anxious Albatross
/*
<div class="" id="" data-attr="background-black">
*/
$('div[data-attr$="-black"]').css("background", "#000000")