Home › Forums › JavaScript › jQuery read more / less toggle › Re: jQuery read more / less toggle
June 14, 2013 at 5:55 pm
#138761
Member
http://codepen.io/JoshBlackwood/pen/pEwHe Thanks for this.
One issue I’ve encountered: if you click ‘Read More’ on more than one paragraph, then click ‘Read Less’ on any one of the paragraphs, the other paragraphs will show the ‘Read More’ link AND the additional content with the ‘Read Less’ link.
I tweeked the JoshBlackwood example to behave better with multiple Read More/Read Less paragraphs on the same page.
http://codepen.io/anon/pen/CIqDf