Bind event listener to ajax loaded elements

$(document).on('click', '.dynamicelement', function() {
//DO SOMETHING;
});

$(.staticparent).on('click', '.dynamicelement', function() {
//DO SOMETHING;
});