05.05.2025, 19:14
Hi,
Tried to use Button diasble with custom java script.
This is the script I use,
It doesnt do anything with the buttons.
I tried in a another logic machine, and it worked there.
Is there any solutions why it maybe doesnt work?
Tried to use Button diasble with custom java script.
This is the script I use,
Code:
$(function(){
var ObjectAddress = Scada.encodeGroupAddress('1/0/10'); // Use 1 bit object !
objectStore.addListener(ObjectAddress, function(obj, type) {
if ( obj.value == true ) {
$(".disabledbyknx").css("opacity", 0.5);
$(".disabledbyknx").css("pointer-events", 'none');
} else {
$(".disabledbyknx").css("opacity", 1);
$(".disabledbyknx").css("pointer-events", 'all');
}
});
});
It doesnt do anything with the buttons.
I tried in a another logic machine, and it worked there.
Is there any solutions why it maybe doesnt work?