Schaltzustand auf Webseite ohne refresh darstellen

danke, hab ich so gemacht, funktioniert gut.