Solved

Read more/less link

Posted on 2014-01-17
2
373 Views
Last Modified: 2014-01-17
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
Comment
Question by:djfenom
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
Ioannis Paraskevopoulos earned 500 total points
ID: 39787984
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
 

Author Comment

by:djfenom
ID: 39788086
That's great, many thanks.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question