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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:27:08+00:00 2026-06-13T22:27:08+00:00

I am developing my first major project with jQuery functions implemented inside my HTML.

  • 0

I am developing my first major project with jQuery functions implemented inside my HTML. I am building an image gallery.

There is a jQuery function on my HTML page that slides a panel down between my header and thumbnails. Note – the thumbnails are created in HTML and CSS; not in an array of any sorts.

I want to have it so that no matter which thumbnail the enduser clicks on, it calls the function to slide the panel down, the problem is that the function can only be called by one thumbnail at a time (by giving it an “id” attribute). When I give the id attribute to all of the thumbnails, the function is only called when the first thumbnail is clicked.

Here is the jQuery function:

jQuery.fn.blindToggle = function(speed, easing, callback) {
var h = this.height() + parseInt(this.css('paddingTop')) +                                            
    parseInt(this.css('paddingBottom'));
return this.animate({marginTop: parseInt(this.css('marginTop')) <0 ? 0 : -h}, speed, 
    easing, callback);  
};

$(document).ready(function() {
    var $box = $('#box')
    .wrap('<div id="box-outer"></div>');
    $('#blind').click(function() {$box.blindToggle('slow');  
});    
});


<div class=thumbbox>
     <div class="thumb" id="blind";></div>
</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-06-13T22:27:09+00:00Added an answer on June 13, 2026 at 10:27 pm

    Why don’t you use a class instead of an ID?

    Like so:

    $('.blind').click(function() {$box.blindToggle('slow');  
    

    And in your markup:

    <div class=thumbbox>
         <div class="thumb blind"></div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing my first EclipseLink J2SE project, and wondering if there's an efficient way
I'm in the process of developing my first major project. It's a light-weight content
I'm developing my first one-page horizontal website using jQuery and the scrollTo plugin. The
I have been developing my first mobile site with jQuery Mobile and you can
I'm developing my first Objective C app; a simple program to scan an image
I am currently developing my first bigger Scala Swing project , and I have
I'm developing my first jQuery plugin that offers a number of optional callbacks. For
I'm developing my first Android application, and I'm curious if there are any standard
I'm developing my first greasemonkey script (trying to edit and add page content to
I have been developing my first large (for me) MVC project for a couple

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.