Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 382
  • Last Modified:

Read more/less link

Hello,

I've got a div with text in it, but only the first paragraph displays and then a read more link appears, once this is clicked the remaining text appears and a read less link is then placed at the end.

This works fine, however the code I've been using doesn't cater for a ul list that I have inside the div, so the list isn't hiding/showing as appropriate. It should be hidden to start with and then show when read more is clicked and then the read less should appear at the end of the list.

Please see below:

http://jsfiddle.net/6N5xz/2/

Thanks,

Chris
0
djfenom
Asked:
djfenom
1 Solution
 
Ioannis ParaskevopoulosCommented:
Hi,

I have a working example here.

What was wrong, was the fact that you were only dealing with 'p' and not with the 'ul'.

Hope it helps,
Giannis
0
 
djfenomAuthor Commented:
That's great, many thanks.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now