|File Size:||3.23 KB|
|Official Website:||Go to website|
Trunc.js is a dead simple (less than 1kb) jQuery text truncation plugin that truncates text to a specified number of characters with an ellipsis.
How to use it:
Trunc.js after you've loaded the jQuery library as shown below:
<script src="//code.jquery.com/jquery.min.js"></script> <script src="trunc.js"></script>
2. Call the function on the target text container and pass the number of characters you want to keep as the first parameter to the