I would like to move some html elements from one container to another endlessly using jQuery append function but, the click event won't fire no more when I click on the element/s that have been appended.
Based on some threads similar to mine I found out that appended elements are stripped off of their event listeners. How can I avoid that, can someone show a solution ?
Here is the: Fiddle
    $('section.container-A div.elem').click(function() {
        $('section.container-B').append(this) ;
    }) ;
    $('section.container-B div.elem').click(function() {
        $('section.container-A').append(this) ;
    }) ;
 
     
     
     
    