Solved

Read more/less link

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Button to go back 3 25
How to create a textarea which saves text in HTML 8 37
How to reload page and grab querystring 2 10
Hide Table in merge 3 8
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 how to dynamically set the form action using jQuery.
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)

777 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