Hi, I want to truncate some text that is comprised of a number of paragraphs. It should be possible to see the text that has been truncated by clicking on something like "read more..." . The text should then fade in and it should be possible to click the text away again by clicking "...read less".
There are a number of jquery plugins available but each one has a different problem:
jtruncate (h***://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html) Allows you specify the number of characters before the split and counts over the
tags - great! Unfortunately it then only actually truncates the paragraph that the split occurs within and leaves subsequent paragraphs visible. It does have decent fade function though and if this small problem could be fixed it would be the best.
Truncate (h***://www.reindel.com/truncate/) works well with multiple paragraphs but sadly splits off the first letter of each paragraph on to a separate line which is no good. Nice fade functionality.
Expander (h***://plugins.learningjquery.com/expander/index.html#getting-started) Does not work with multiple paragraphs. It just truncates each paragraph separately according to the character count set. It does have a fade function.
Truncator (h***://henrik.nyh.se/2008/02/jquery-html-truncate) Works well with block level elements and therefore multiple paragraphs within a page but alas no fade effect!
Please please can someone suggest a way forward for me! It would be much appreciated..
