{
+ checkbox.addEventListener('change', function() {
+ const interfaceName = this.id.split('-')[2]; // Get interface name from ID like "multicast-eth0"
+ const label = document.getElementById(`multicast-label-${interfaceName}`);
+
+ if (this.checked) {
+ label.textContent = 'Enabled';
+ } else {
+ label.textContent = 'Disabled';
+ }
+ });
+ });
\ No newline at end of file