I'd like to use the dotdotdot plugin - now, what i wouldn't like is to create all the links individually: $("#wrapper").dotdotdot()
. i'd rather like to be able and listen for divs with the class 'textoverflow_dotdotdot' and then add the link automatically.
something like this:
$(document).on('DIV WAS ADDED','.textoverflow_dotdotdot', function(){
$(this).dotdotdot();
}
any ideas?
INFO: i'm using jquery 1.7.2