It should be "body"
instead of document.body
$(document).ready(function(){
$("body").on('click', '#container', function(){
console.log("hello");
});
});
EDIT : When I tried your JSFiddle again, it seems to be working just fine. It is logging the output in console as intended. Am I missing something in question?