Change text color in a text box on a repeater using conditional statement

What I tried today. Console.log(itemData.work) prints out correctly but I can’t seem to understand how to correlate that with “#text10” to use it in my comparison statement.

$w(‘#repeater1’).onItemReady(($item, itemData, index) => {
//itemData.work = $item(“#text10”).text
$item(“#text10”).text = itemData.work
if(itemData.work === “Weld”){
$w(“#text10”).html = ‘

’ + $w(“#text10”).text + ‘


}
else if(itemData.work === “Straightening”) {
$w(“#text10”).html = ‘

’ + $w(“#text10”).text + ‘


}
else if (itemData.work === “Refinish”) {
$w(“#text10”).html = ‘

’ + $w(“#text10”).text + ‘


}
else if (itemData.work === “Weld & Straightening”) {
$w(“#text10”).html = ‘

’ + $w(“#text10”).text + ‘


}
console.log(itemData.work)
})
}
);