Click Event on a class does not trigger when the class is added to the DOM by JQuery

Click Event on a class does not trigger when the class is added to the DOM by JQuery

Hi!


Need: Add some Link with JQuery to send later to a iframe

I have some " <a>" tags with a class " ToFrame" in my html code.
When i " click" on thoses link a event is fired so i can send the "href" to the frame.

BUT

When i "Add" new links ( with the class) from JQuery nothing is fired and the Url is directly loaded in the browser (!)

I make a little sample  to show the problem:  https://jsfiddle.net/p71L136h/

Thanks a lot to explain me why this don't work, and how can i resolve it