We want every .initialize-me item to have color changed to blue by js - no matter how and when item with this class is added


You can even add item with .initialize-me class via browser inspector - proper js will be executed on it just when you finish edition.

This elem has .wrong-class and will not be initialized. Sub element
This class has .initialize-me class so it will be initialized. Sub element

This should be bold, if there is a div in front of it.

This item wont be initialised because it is outside the target element that is being observed.