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
jQuery Expander Plugin:
HTML:
Javascript:
Source:
http://plugins.learningjquery.com/expander/index.html
See demo here:
http://plugins.learningjquery.com/expander/demo/index.html
Good luck ask me if you need clarifications!