jQuery: how to replace .live with .on? [duplicate]

You should add event to any parent element of li.bibeintrag.

$('ul').on('click', "li.bibeintrag", function(){
    alert('myattribute=" + $(this).attr("myattribute'));
});

Leave a Comment