Posts by Willian Morais • 46 points
1 post
-
3
votes2
answers788
viewsA: Know when you hear changes in DIV with Javascript
To know a change of some component you can use the Mutationobserver. It is quite simple its use: let target = document.getElementById('div-pai'); let observer = new MutationObserver(mutation => {…