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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:05:18+00:00 2026-06-01T21:05:18+00:00

I am using a Jquery file on two different article tags on the same

  • 0

I am using a Jquery file on two different article tags on the same page. These are the two different article tags,

First Article Tag,

    <article id="popupAbout" class="popupAbout"> <a id="popupAboutClose"><img src="../original/images/close.png" width="50" alt="" /></a>
  <h1>Maps of Arizona</h1>
  <div id="container">
    <div id="photo-wrapper">
        <img class="image" id="image1" src="images/Wet.jpg"  height="450px" width="800px" alt="image 1"/>
        <img class="image" id="image2" src="images/Dens.jpg" height="450px" width="800px" alt="image 2"  />
        <img class="image" id="image3" src="images/Slope.jpg" height="450px" width="800px" alt="image 3"  />

        <!-- 
        <div id="transition-container"> This effect is not needed for this demo         
        </div>
        -->

        <img id="previous-btn" src="images/left_arrow.png" alt="Previous Button" />
        <img id="next-btn" src="images/right_arrow.png" alt="Next Button" />
    </div>
  </div>  
</article>

Second Article tag,

    <article id="popupProjects" class="popupProjects"> <a id="popupProjectsClose"><img src="../original/images/close.png" width="50" alt="" /></a>
  <h1>Maps of Four States</h1>
  <div id="container">
    <div id="photo-wrapper">
        <img class="image" id="image1" src="images/3843_T_av6_4states.jpg"  height="450px" width="800px" alt="image 1"/>
        <img class="image" id="image2" src="images/4.jpg" height="450px" width="800px" alt="image 2"  />
        <img class="image" id="image3" src="images/beach6.jpg" height="450px" width="800px" alt="image 3"  />

        <!-- 
        <div id="transition-container"> This effect is not needed for this demo         
        </div>
        -->

        <img id="previous-btn" src="images/left_arrow.png" alt="Previous Button" />
        <img id="next-btn" src="images/right_arrow.png" alt="Next Button" />
    </div>
  </div>
</article>

As you can see, the tag contents are almost identical. I am using the same Fade.js on both. The first one is working fine, but the second one, i am only able to see the buttons and the image container, which is empty.

HELP!!!

  • 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-01T21:05:19+00:00Added an answer on June 1, 2026 at 9:05 pm

    The problem is potentially due to the fact you are reusing ids. All ids have to be unique but you are using the same ones multiple times (e.g. next-btn).

    Change your jQuery to select by class instead of id and ensure that both articles contain the same classes.

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

Sidebar

Related Questions

I'm using jquery file uploader (per blueimp) and I'm wondering how I can direct
I am currently using Valums JQuery File Upload plugin. The plugin is very convenient
I am trying to clear images using external jquery file but it's not showing
I'm using the jQuery multi-file upload plugin found here: http://www.fyneworks.com/jquery/multiple-file-upload/ I don't see in
I am loading an XML file using jQuery $.get. after loading the content, i
I want to write JSON data to a text file using jQuery and PHP.
When trying to dynamically load a Javascript file using jQuery I keep getting a
I am using jQuery to make a POST to a PHP file with the
I'm using the Google CDN to load my JQuery file. However, I'd like to
I would like to do below validations for single file uploaded using jQuery Uploadify

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.