codice:
$(document).ready(function() {
            $("body").on("click","#cover",function(){alert('ciao mondo')})
            })
$(...).append('<div id="cover" onclick="alert(\'ciao mondo\')"><div>');