?
Solved

Need toggle to scroll back to top when closed

Posted on 2014-09-22
5
Medium Priority
?
116 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
[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
  • 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 8

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 8

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 8

Author Closing Comment

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

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
This article discusses how to implement server side field validation and display customized error messages to the client.
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

801 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