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

  • Home
  • SEARCH
  • 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 6545173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:33:15+00:00 2026-05-25T11:33:15+00:00

I am trying to do a simple slideToggle when an anchor tag is clicked.

  • 0

I am trying to do a simple slideToggle when an anchor tag is clicked. The text that should slideToggle is wrapped in a span tag that is coded directly after the anchor tag. I tried something like this but it did not work:

<script>
$('#rp-help-main a').click(function() {
  $(this).next().find("span").slideToggle('slow', function() {
    // Animation complete.
  });
});
</script>

Here is a sample html:

<div id="rp-add-note">
<h4>Add note tool</h4>
<p>
This tool allows you to <strong>add a note</strong> anywhere in your room.  Simply move your cursor to where you'd like your note to appear and left-click.<a href="#" onclick="return false">expand more</a>  <span>A text box will appear.  Once you type your note choose SAVE and your note will be inserted directly into your room. 
<br /><br />
Move your note using the selection tool.  Simply click on the note and drag it where you'd like it to appear.  To delete, click on the note to view the text box again.  Once the text box appears, click REMOVE TEXT
</span>
 </p>
 </div>

   <div id="rp-undo-tool">
<h4>Undo tool</h4>
<p>
Click on this button at any time to <strong>undo your last action</strong>.  Note:  This will only undo your last action, it will not... <a href="#" onclick="return false">expand more</a> <span>continue to undo previous actions. 
 </span>
 </p>
 </div>
  • 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-05-25T11:33:16+00:00Added an answer on May 25, 2026 at 11:33 am

    Remove that find('span'). Then it’s working for me:

    $('#wrapper a').click(function() {
    
        $(this).next().slideToggle('slow', function() {
            // Animation complete.
        });
    });
    

    http://jsbin.com/exovos/3/edit

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

Sidebar

Related Questions

I am trying a simple Jekyll plugin: class MonthlyArchives < Liquid::Tag def initialize(tag_name, text,
I'm trying a simple F# script that will find pythagoras. Here's the code: open
I'm trying simple example - #include <stdio.h> int main(void) { printf(Content-type: text/html\n\n); printf(<html><title>Hello</title><body>\n); printf(Goodbye
I am trying a simple Extension Method example and am unable to increment or
I am trying something very simple, but for some reason it does not work.
I am trying to get simple jQuery to execute on my Content page with
I am trying to do simple tutorial in Visual Studio let someNumber = (2
I am trying to write simple Visual Studio Add-In for code generation. In my
i am trying to deploy simple asp.net mvc frameworkd application in may shared hosting
I'm trying to add simple login page to ASP.NET MVC app. I actually use

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.