How to use if else conditional and database info in css syntax

Status
This content is read-only, or is not open for further replies.

FoxSecrets

Guest
offline
I need to change css according to database checkbox value.

What's the best approach to get that?

e.g. (no idea how)
Code:

Code:
<xf:css>
    <xf:if is="{$item.status} == 1">
        .myclass {
             display: none;
          }
    <xf:else />
         .myclass {
             display: block;
          }
    </xf:if>
</xf:css>

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom