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

  • Home
  • SEARCH
  • 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 8924433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:24:56+00:00 2026-06-15T07:24:56+00:00

How would one only show a certain amount of divs? Right now I’m using

  • 0

How would one only show a certain amount of divs? Right now I’m using the following code to show only 5 divs.. but it’s not working properly:

$('.categoryThumbnailList_item:lt(5)').show();

I created a JSFiddle to showcase the problem:

http://jsfiddle.net/gXxEs/

I don’t want the divs to load and be hidden either. I would like the divs to not appear at all and not have to be loaded on the screen.

Any help would be appreciated! 😀

  • 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-15T07:24:57+00:00Added an answer on June 15, 2026 at 7:24 am

    You have to hide all then show the ones you want:

    $(document).ready(function() {
        $('.categorythumbnaillist_item').hide();
        $('.categorythumbnaillist_item:lt(5)').show();
    });
    

    Updated fiddle: http://jsfiddle.net/gXxEs/9/

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

Sidebar

Related Questions

I need to hide all list elements, but only show one at a certain
I would like to allow only one country access, but exclude proxies within this
How would one shorten the following using ternary operators? if ((pos - maxPos) ==
Based on Constraint for only one record marked as default would the same approach
I would appreciate some help on creating the proper SQL to retrieve only one
I'd like to enable SVNAutoversioning for one repository only. Would this work? <Location /repos/>
Greetings, I would like to ask if creating Singleton to have only one active
I have print $str; abcd*%1234$sdfsd..#d The string would always have only one continuous stretch
I would like to install my setup content only to one specific directory, so
If I only ever use one Statement at a time would it be worthwhile

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.