Collapser is a jQuery plugin for collapsing/truncating an element text by words, characters and lines. It is an all in one plugin with multiple functionalities to truncate a paragraph or any element as desired.

jQuery collapser plugin screenshot


  • Four modes of operation
    • Truncate text by characters
    • Truncate text by words
    • Truncate text by lines
    • Show/hide element
  • HTML content present in the elements are preserved during the operation.
  • Simple and flexible API for using in varied applications.
  • Display remaining string count in the show/hide button.
  • No complicated syntax or alterations required, can be used readily.
  • Light weight only 4KB compressed.
  • Works in all browsers. Tested till IE 7 and it works !
Buy me a coffee !

Buy me coffee !

If you like this work and found this useful buy me a coffee ! your donation will motivate me to develop and support this work.

Subscribe for updates

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter

Add your comment 236 Comments so far