Here's a simplified version of my jQuery script that I cannot force to work properly.
http://jsfiddle.net/qk2nupq6/ (code's also below)
There's a "#press" div within a "#container". After pressing "#press", the content of "#container" is changed via .html() but the "#press" is still there so that is can be pressed again and the function can be run again.
For some reason, after pressing the button once, the function does not run again and I do not really have any clue why is that so.
HTML
<div id="container">
<div id="press">press </div>
</div>
JS
$(document).ready(function(){
$("#press").click(function(e){
console.log("x");
$("#container").html($("#container").html()+"<div>added</div>");
})
})