@russian-dima Thanks so much for taking the time to reply.
I have used the code and amended to this,
$w . onReady ( function () {
$w ( “#sitelist” ). onItemReady (( $item , itemData , index ) => {
$item ( ‘#seemore’ ). onClick (()=>{
console . log ( itemData );
console . log ( "weekendPopUpSite: " , itemData . weekendPopUpSite [ index ]);
if ( true ) { $item ( ‘#seemore’ ). style . backgroundColor = “red” }
});
});
});
This seems to work but only when the button is clicked, what do it need to change when the button is clicked, can you explain how to make it so the colour is on all the time? I tried changing . onClick (()=>{ to a few other things but they all seem to error.
Thanks