I am creating elements using:
$('#articleview').append(articles);
I need to apply the dotdotdot plugin to this dynamically created html
$(document).ready(function() {
$(".ellipsis").dotdotdot();
});
but it's not working in dynamically created html
After the
$('#articleview').append(articles);call -
$(".ellipsis").dotdotdot();And this should work...
dotdotdot()did it's work for first time the document was loaded. When you changed the content, it needed to be called again.