Hello
I have many fields in an html page such as this
<div class="note" id="notexyz23">
very long content
</div>
I'm looking for a script that can do the following:
- check if the content length is larger than some quantity (like 300 characters)
- if this is the case, compact it so that its length is 300 characters and display an "expand" button, otherwise leave it as it is
Obviously it should maintain intact the inner html structure of the content.
I'm sure something like this has been done already, I'd like to get some reference.
Thanks a lot
Nicola Montecchio