I am creating a website with Bootstrap and I would like to enter an if-else statement but I do not know how to do that. Let me explain:
Here is an image of my current HTML snippet:
Now what I want is, that if I change from "OFF" to "ON" by "An- / Ausschalten" that automatically the "Status aktuell" turns from "OFF" to "ON" and also the other way so it should look like this:
My current HTML code for this part is:
GENERALSTEUERUNG
Steuern Sie mit nur einem Klick die komplette Lichtanlage Ihres Hauses.
Status aktuell:
An- / Ausschalten:
Can someone tell me what if-else code I have to use to make this possible? What should the code look like so that this works?
I would really appreciate your help.
Thanks,
Chris