Here is the solution and code that Paul Grenier put together.
JGil asked on Paul Grenier's article
JQuery for Everyone: Collapse Text in List View, can the text change when
you expand and collapse your view of the text. An the answer is yes.
I have updated my code to reflect this. Again go to Paul's article and
capture his code and then replace part of the code with mine. Essential
you will be replacing the function called collapseText(group).
I made additional changes so that there is text after the icon that is clickable. This will give the user a better queue as to what this feature will do for them. You can updated Paul's code with my changes below.
- First get the original code by clicking on "Click to View Code":
- Second change out the code section with the code below.
- Add to a CEWP
Code Updated: 05/21/2010