jquery plugins for truncating long text string by container width/height

Posted by ShiVik on Stack Overflow See other posts from Stack Overflow or by ShiVik
Published on 2010-10-15T05:12:49Z Indexed on 2011/01/04 4:54 UTC
Read the original article Hit count: 205

Filed under:
|
|

Hello all

As the title says, I want to truncate user-input text string based on the width and height of a designated container. My specification is to truncate the string, display some message like Read More at the end and when user clicks on it, the text slides down.

UPDATE: Ah! Forgot one thing. It should handle multi-byte characters as well.

Can somebody throw some light on what options do I have? jQuery plugins or some nifty jquery snippet?

Thanks and Regards

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-plugins