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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T00:30:05+00:00 2026-05-21T00:30:05+00:00

Hey guys some help needed with jQuery. I have 5 icons linked to 5

  • 0

Hey guys some help needed with jQuery.

I have 5 icons linked to 5 pictures, so I am fading out icon and fading in larger version.

$('#iconX').click(function() {
    $('.iconSet').fadeOut('300');
    $('#largeX').delay('300').fadeIn('300');
});

<!-- Small images -->

<a href="#" ><img src="images/icon1.png" class="smallPics" id="icon1"/></a>
<a href="#"><img src="images/icon2.png" class="smallPics" id="icon2"/></a>


<!-- Large images -->

<img src="images/large1.png" class="largePics" id="large1" />
<img src="images/large2.png" class="largePics" id="large2" />

How can I use instead of X’s (#iconX , #largeX) , something like icon1 and large1 and find out which exactly icon was chosen and how can I use it later in largeX ? Hopefully it makes any sense, and sorry for question title, did not really know how to name it 🙂

  • 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-21T00:30:06+00:00Added an answer on May 21, 2026 at 12:30 am
    $('img[id^="icon"]').click(function() {
        $(this).fadeOut('300');
        var largeId = this.id.replace('icon', 'large');
        $('#'+ largeId).delay('300').fadeIn('300');
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey guys, if anybody can help me out i'd love it... What i have
Hey guys need some more help I have 3 tables USERS, PROFILEINTERESTS and INTERESTS
Hey guys i need some help with logic in my app. I have an
Hey guys I need some help with this: I have two view controllers, let's
hey guys, I need help considering win32com in Python: I have a routine that
Hey guys, I have some code that I found that I would rather use
Hey guys, hoping for some help with this :( been stuck on it for
With the help of some of the guys here I have some regex to
Hey guys! I need some help writing a code that creates an array in
Hey Guys. I need help understanding my hw assignment. I am starting out in

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.