XF 2.0 Reverse Result : Can anyone sort it out?

Mian Shahid

Well-known member
Hi,
I am doing something like that:

PHP:
<xf:if is="$xf.options.ITD_daynightString != 'day'">
        <script>
        var person = "DAY";
        document.getElementById("daynightString").innerHTML = person;
        </script>
    </xf:if>
<xf:if is="$xf.options.daynightString != 'night'">        
        <script>
        // Create aand display a variable:
        var person = "NIGHT";
        document.getElementById("daynightString").innerHTML = person;
        </script>
    </xf:if>

with this options
2018-10-04_100750.webp

but when I am selecting Day, its displaying Night & day when I am selecting Night looks like reverse cosmos system :D

Can anyone sort it out?
 
Back
Top Bottom