23 July 2012

Introduction

I was working on a project where I wanted to WordWrap some content and either display an ellipse or add a toggle button to show/hide more. Looking around I could not find anything that did what I wanted, so I tossed together the below. Performance is great and works pretty good.

The Code

This snippet is also hosted as a Gist on Github:

Usage examples

Demo

This is a demo of the wordwrap. ### Demo Code
This is a demo of the wordwrap.

Enjoy!

Tagged under extended, function, jquery-2, jquery-wordwrap, word-wrap, wordwrap, wordwrap-toggle, and others
Mike Mackintosh

This post was written by Mike Mackintosh, a decorated security professional.




Related Posts