Solved

Need toggle to scroll back to top when closed

Posted on 2014-09-22
5
113 Views
Last Modified: 2014-10-04
Hi!
I'm using readmore.js to toggle some content on this page:

http://sandbox.intrepidrealist.com/eye-specialist-sb/services/

I've got the init script in place but it's not working. I don't see an error in the the console either.
Anyone see what's amiss?
Thanks
0
Comment
Question by:Alicia St Rose
  • 3
  • 2
5 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40337483
Working fine for me when I click Read More
Though why use a plugin, jQuery can do that with one line.
0
 
LVL 7

Author Comment

by:Alicia St Rose
ID: 40338237
When you click close, does the page auto scroll to the top of the content block. This is more apparent on iPhone or Android. I need it to go back to top...
0
 
LVL 58

Expert Comment

by:Gary
ID: 40338251
Yes, will look at it on the tablet tomorrow - still don't know why you are using a plugin for this.
0
 
LVL 7

Accepted Solution

by:
Alicia St Rose earned 0 total points
ID: 40338255
Okay, I'm a doofus!
I forgot that I'd added the init script in an external file. So I suppose there was a bit of a conflict.
It works now.

I'm not well versed in jQuery. Getting better all the time!
Is there a way to do what I need with one line? Don't i need a callback?

I'd rather not use a plugin if I can help it!
0
 
LVL 7

Author Closing Comment

by:Alicia St Rose
ID: 40361059
I solved the problem on my own.
0

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

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

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

860 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