Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8958417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:12:30+00:00 2026-06-15T15:12:30+00:00

The page I’m referencing is here: http://jjnursingnotes.com/NOV12/ JQuery page is located here: http://jjnursingnotes.com/NOV12/jquery.expander.js After

  • 0

The page I’m referencing is here:

http://jjnursingnotes.com/NOV12/

JQuery page is located here:

http://jjnursingnotes.com/NOV12/jquery.expander.js

After you click “Read More,” what I would like to happen is for the page to jump to the heading ( <h1> ) or the beginning of the div layer ( <div class=”expander” id=”sect##”> ) at the beginning of the section once you click “Read Less.” Currently, the code for the “Read Less” button appears as follows:

      if ( o.userCollapse && !$this.find(o.lessSelector).length ) {
        $this
        .find(detailSelector)
        .append('<br><br><span class="' + o.lessClass + '">' + o.userCollapsePrefix + '<a href="#">' + o.userCollapseText + '</a></span><br><br>');
      }

My headings all have names assigned directly before (001, 002, etc.), and my guess would be to simply add #001, #002 etc. to the link in the JQ code. Problem is that this script defines every “Read Less” button on the page, so that variable would need to be different for each button. Am I on the right track, or is there a more efficient way to do this?

Thank you in advance. I am clearly a novice in all things JS and JQuery!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:12:32+00:00Added an answer on June 15, 2026 at 3:12 pm
    $('.expander .read-more').click(function(e){
     $('html,body').animate({ scrollTop: $(e.target).closest('.expander').offset().top}, "slow");
    })
    

    there you go 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Page in question: http://phwsinc.com/our-work/one-rincon-hill.asp In IE6-8, when you click the left-most thumbnail in the
page here: http://webpages.marshall.edu/~glasser1/jquery.html I'm trying to replicate the old twitter page login style. If
The page is here: https://gentle-day-3026.herokuapp.com/ The css file like this: https://gentle-day-3026.herokuapp.com/stylesheets/base.css another is to
Page in question: http://secantmedical.com/biomedical-textiles/biomedical-textiles.php The heading area with the words Biomedical Textiles is set
page I'm working with: http://jsbin.com/abewe4 I want the slogan div centered inside col3 div
Page - http://blu-eye.com/index.html - contains suckerfish menu which is displaying correctly on the rest
page.getByXPath(//*[@href='http://www.example.com/index.do/abc/1_*'); Do I need to escape any characters? I am trying to get all
Page in question: http://www.rjlacount.com/public/lander/ I'm probably just doing something stupid, but I'm trying to
Page my question is referring to: http://raphaeljs.com/australia.html Can some kind individual please tell me
On page 88 of Stephen Toub's book http://www.microsoft.com/download/en/details.aspx?id=19222 There is the code private BlockingCollection<T>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.