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 9228355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:18:12+00:00 2026-06-18T05:18:12+00:00

As you can see from the code below I am attempting to pop up

  • 0

As you can see from the code below I am attempting to pop up “revealFootNote” when “note” is clicked. That works fine but I have 10 foot notes and when I click on any of them they all pop up. Each footnote has a unique ID of “one”, “two” … “ten” I need for only the relevant footnote to pop-up when that particular class is clicked. If I replace .note with #one it still works but it pops up #one for any class clicked.

$(document).ready(function(){                                               
    $(".note").click(function() {;
        $(".footNote").toggleClass("revealFootNote");
    });
    $(".footNote").click(function() {;
        $(this).toggleClass("revealFootNote");
    });
});

Help! I am 2 days into learning jQuery.

Thank you,
Taliesin

So, the end result after all the help you guys gave me:

$(".note, .revealFootNote").click(function() {
    if ($(this).hasClass('note')) {
        $('#'+$(this).data('target')).toggleClass("revealFootNote");
    } else {
        $(this).hide();
    }
});
    $(".footNote").click(function() {;
        $(this).toggleClass("revealFootNote");
});
  • 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-18T05:18:14+00:00Added an answer on June 18, 2026 at 5:18 am

    HTML

    <ul>
        <li>Running speed<span class="note" data-target="nine">9</span></li>
        <li>Ki<span class="note" data-target="ten">10</span></li>
        <li>ESP<span class="note" data-target="eleven">11</span></li> 
    </ul> 
    
    <aside class="footNote" id="nine"> The average human can run 7.5 miles per hour. </aside> 
    <aside class="footNote" id="ten"> Ki and ESP points can be further modified with the use of skills or alchemical substances. </aside>
    <aside class="footNote" id="eleven"> Footnote Eleven </aside>
    

    jQuery

    $(document).ready(function($) {
        $(".note, .footNote").click(function() {
            if ($(this).hasClass('note')) {
                $('#'+$(this).data('target')).show();
            } else {
                $(this).hide();
            }
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some really funky code. As you can see from the code below
I'm using code from other c# app and I can see that in WP7
I have a setup a SQL Server instance that I can see from all
I have the below code. I am attempting to 1. import an image from
As you can see from the code below we, use TinyMce a lot in
As you can see from the code below am building up a collection of
As you can see from the code provided below as well as the title,
as you can see from the code below im just trying to get the
As you can see from code below. I am caching the show action. I
I have a web page where users can see data from MongoDB on a

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.