27.03.2017, 19:44
(This post was last modified: 27.03.2017, 19:46 by Erwin van der Zwart.)
Hi,
I would use option 2, add custom class 'hidebyknx' to your elements and try this custom JS code:
BR,
Erwin
I would use option 2, add custom class 'hidebyknx' to your elements and try this custom JS code:
Code:
$(function(){
grp.listen('1/1/1', function(object, state) {
if (state == 'value' && object.value == true) {
$(".hidebyknx").addClass("hide");
} else if (state == 'value' && object.value == false) {
$(".hidebyknx").removeClass("hide");
}
}, true); // set to true to respond on same value
});
BR,
Erwin