L'attribut JQuery Selector se termine par
/*
<div class="" id="" data-attr="background-black">
*/
$('div[data-attr$="-black"]').css("background", "#000000")
Anxious Albatross