How to change color of title in Wix Database

Hi! So I’m trying to create a website that will show a list of opening hours for a retail store, and I want to format the text where it will change the color when it’s that day (see picture below for what I’m trying to achieve) thanks for any help!

Are you talking about table element?

I put repeater and connected it to database to show full week

@mokrohajskamemes if the first item in the repeater always stands for today, the you can do:

$w.onReady(() => {
$w("#repeater1").onItemReady(($i, iData, index) => {
if(index === 0) {
[$i("#day"), $i("#date"), $i("#time")].forEach(e => e.html = e.html.replace(">", ' style="color:blue">');)
}
})
})

@jonatandor35 The first item will not always stand for today, it will change with each day in week. Like I have items in repeater from Monday to Sunday and I want that to change depending on day of the week

@mokrohajskamemes
so do something like (assuming that you already implemented the repeater as appeared above, with “Today” in the text element):

$w.onReady(() => {
$w("#repeater1").onItemReady(($i, iData, index) => {
if($i("#day").text === "Today") {
[$i("#day"), $i("#date"), $i("#time")].forEach(e => e.html = e.html.replace(">", ' style="color:blue">');)
}
})
})