🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

ellipsis is a dead simple jQuery plugin that truncates your text to a specified number of characters and adds an ellipsis (...) at the end of the container.

Text-Truncating

Documentation

jquery-ellipsis V1.0

A simple omit the extra text plugin...

##Usage

Including it on your page:

<script type="text/javascript" src="jquery-ellipsis-1.0.min.js"></script>

Let's start with the basic markup:

<p class="text_ellipsis">Smile to life whatever and whenever.</p>

And your JavaScript should look like this:

$(function () {      $(".text_ellipsis").ellipsis({"maxLength": 30}); })

##Options

$('.text_ellipsis').ellipsis({      // the maximum text length and beyond will be replaced with ellipses      maxLength: 30,      // whether to open the prompt, the default open state, the value is true      openTip: false });

##Dependencies To start using ellipsis.js, you will need the following:

jQuery


You May Also Like