20.05.2022, 14:36
You have a syntax error, it should be:
Code:
$(function() {
$('.hidden-by-value').each(function(_, el) {
var addr = $(el).data('object');
if (addr) {
grp.listen(addr, function(obj) {
var value = obj.value;
$(el).css('visibility', value ? 'visible' : 'hidden');
});
}
});
});