El atributo de selectores jQuery termina con

/*
<div class="" id="" data-attr="background-black">
*/

	$('div[data-attr$="-black"]').css("background", "#000000")
Anxious Albatross