Skip to content

mykisscool/limit-text

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Limit Text jQuery Plugin

This jQuery plugin will truncate text to a specified number of characters without splitting a word in half.

Example one:

// Default 100 characters and an "..." ellipis
$('#example-1').limitText();

Example two:

// Customized and chained
$('#example-2').limitText({
    length:65,
    ellipsisText: '[...]'})
.css('color', '#800000');

About

This jQuery plugin will truncate text to a specified number of characters without splitting a word in half.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published