You need to specify the div to use. You can't use all divs like you did.
$(function () {
$('#inner').dotdotdot();
});
Note that you can also use Ellipsis CSS property to avoid overflow (but you can't add automatically a text like "read more" or other stuffs that dotdotdot offers) : http://www.w3schools.com/cssref/css3_pr_text-overflow.asp