Solved

Read more/less link

Posted on 2014-01-17
2
359 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
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now