html中写php if else,HTML/PHP if-else Statement

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:

X3qWD.png

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:

0obuQ.png

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值