I know in jQuery that there’s the function live() to suscribe to events as soon as an element appears. I just want to do something to an element as soon as it appears. I tried suscribing the elements to the “load” event but it doesn’t work. How do you go about that?
Share
If you control the code which creates and appends elements, you could trigger a custom event and handle it in a handler later.
Example