Skip to content

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

License

Notifications You must be signed in to change notification settings

mykisscool/limit-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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