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

The Archive Base Latest Questions

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

Hi I have 4 divs with same class 2 of them (first and second

  • 0

Hi I have 4 divs with same class 2 of them (first and second are display) the other are hide using $(‘.smt:gt(1)’).hide();

<div class="smt"><p>1</p></div>
<div class="smt"><p>2</p></div>
<div class="smt"><p>3</p></div>
<div class="smt"><p>4</p></div>
<div id="more"><p>+</p></div>

How can I show the other div one by one clicking on more 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-10T05:18:34+00:00Added an answer on June 10, 2026 at 5:18 am

    try this

    $('#more').click(function(){ // <-- bind click event to more
        $('.smt:hidden').eq(0).show(); // <-- show first hidden div with class .smt
        // or $('.smt:hidden').first().show();
        // or $('.smt:hidden:first').show();
        // or $('.smt:hidden:eq(0)').show();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My issue is that I have two (or more) divs of the same class,
I want to display some div's in a wrap. The div have same class
i have 3 divs with the same class. <div id=qq1 class=cl>sentence</div> <div id=qq2 class=cl>sentence</div>
i have two divs with the same ids but one has display=none and the
I have Divs show and hide (with an animation) using the following script (I
I have two sibling divs sitting below each other, both contained in the same
I have several fixed position divs with the same class at varying distances from
I have divs with same class, but each 3 are wrapped in a parent
I have some div`s with same class say: <div id=1 class=same>..</div> <div id=2 class=same>..</div>
I have two toggle divs that have same class name. When i click one

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.