Can you help me with this: I have a td in a table with a background image applied
<td background="assets/images/crew/sign.jpg" style="background-repeat: no-repeat; background-size: contain; background-position: center center">
What I need:
I want to dynamically change the background image of the td based on a boolean value my_boolean
. If the value is true, I want to show sign.jpg
, and if it's false, I want to display a different image different.jpg
.
Appreciate your assistance