jQuery Read More “text abbreviator” plugin
-
If you have a lot of user-generated content that you don’t limit the length on, so it can grow very large. To combat this, there is the UI pattern: a “read more” link available to show the remaining text for the long-winded texts, while just showing a snippet otherwise. Jquery.readmore is an easy way to do this.Default Usage
<p class="short"> (long text here) </p> $(".short").readmore();Resulting Demo
Setting substring length
<p class="short"> (long text here) </p> // adjust per call $(".short").readmore({ substr_len: 50 }); // or permanently for all calls $.fn.readmore.defaults.substr_len = 50; $(".short").readmore();This delimits the text shown to 50 characters, and is appended with the read more tag.
Author: Jake Trent
Repository: Download from jQueryRelated Posts:
- jQuery fancy Draggable Captcha
- Rounded Menu with CSS3 and jQuery
- timeAGO a jQuery plugin
- GoogleMap Markers jQuery from HTML list !
- jQuery Image Load
GD Star Rating
loading…








4 Responses and Counting...
Read jQuery Read More plugin now at http://bit.ly/cn4q5W
Reply
loading...
Read jQuery Read More plugin now at http://bit.ly/cn4q5W
Reply
loading...
Post updated August 13, 2010 – jQuery Read More "text abbreviator" plugin. Read it now at http://bit.ly/cn4q5W
Reply
loading...
jQuery Read More “text abbreviator” plugin | Site Help: http://bit.ly/haGjhd
Reply
loading...