Change innerHTML in multiple classes at once

This goes into head


<script src="https://cdn.jsdelivr.net/gh/worldoptimizer/HypeDataDecorator/HypeDataDecorator.min.js">
</script>
<script>
HypeDataDecorator.mapDataAttribute('label');
</script>

Now, add data-label to a group… editing data-label will change all instances of .label below it in one go and is reactive.

3 Likes