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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:02:50+00:00 2026-06-08T09:02:50+00:00

Here is what I have so far: http://jsfiddle.net/6j4cT/3/ Sorry for not pasting the code

  • 0

Here is what I have so far: http://jsfiddle.net/6j4cT/3/

Sorry for not pasting the code as there is too much to add into this post.

Firstly the JQuery I have so far is not selecting first LI within the “news-items” and adding the class “active”.

Also, if anyone would like to rewrite my code to a cleaner format you are welcome to do so.

Many thanks!

  • 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-08T09:02:51+00:00Added an answer on June 8, 2026 at 9:02 am

    Just give the class name active to the first li element:

    <ul id="news-items">
        <li class="active">
            <a href="#">Node 1</a>
        </li>
        <li>
            <a href="#">Node 2</a>
        </li>
    </ul>
    

    Reference: jsFiddle


    Status Update: jsFiddle Rev 2

    You can also add the class using jQuery as such:

    var periodToChangeSlide = 5000;
    var pp_slideshow = undefined;
    var currentPage = 0;
    $('#news-items li:first').addClass('active');
    

    Re-Revised via Message Request: jsFiddle Rev 4

    var periodToChangeSlide = 5000;
    var pp_slideshow = undefined;
    var currentPage = 0;
    $('#news-feature-img-wrap li').css('display','list-item').slice(1).css('display','none');
    $('#news-items li:first').addClass('active');
    

    The new addition, per your message comments, will set display:list-item for only the first item while setting display:none for the remainder of the items since that has been sliced off via jQuery .slice() method.

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

Sidebar

Related Questions

JSfiddle (showing the non-working code) here: http://jsfiddle.net/ts2Rr/ I have three boxes that a user
Here is what i have so far: http://jsfiddle.net/BgEtE/ I am trying to get something
Here's what I have so far: http://jsfiddle.net/xhuLZ/ The next step, which I'm unsure how
what I have tried so far here : http://jsfiddle.net/yusaf/VVEY9/26/ I have a problem with
Ok, if you go here: http://jsfiddle.net/RarFB/2/ You will see the work that I have
Here is a fiddle: http://jsfiddle.net/5s7vv/ What I want to do is have 2 buttons
http://pastebin.com/mYk8M038 here is what I have so far... I think it may be something
I'm using the Firefox Add-on Builder and here is what I have so far:
I'm a total newb to LINQ. Here is the code I have so far:
I have table like this -> http://jsfiddle.net/jurisKaste/FvgeQ/ And I need to get array of

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.