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

Text-Ellipses is a very small jQuery text truncation plugin which can be used to shorten text with ellipsis inside a specific DOM element.

Text-Truncating

Documentation

Text Ellipses Jquery plugin

A Simple Jquery plugin for dom element text shortening

Usage

Include text-ellipses.jquery.js into your html file

<script src="src/text-ellipses.jquery.js"></script> 
$('.heading').textEllipses("Lorem ipsum dolor sit amet",5, options)

Options

    {         hoverExpand: true // Default false         showTitle: false, // Default true         className: 'some-class-name', // Default text-ellipsis-element         dataValueName: 'some-data-field-name', // Default real-value     }

You May Also Like