This is the workflow:
- Add elements dynamically to a div container
- Register click event for this elements (using jquery custom function)
- Trigger the element event
According to the flow above, I can't get the new element event works, because it never is triggered. This is my scenario:
The idea is that when you click over "element" its ID attribute should be printed in .log div
Edit:
I have tested all answers and all of them work fine :)