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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:11:34+00:00 2026-06-03T20:11:34+00:00

I am setting up a services section. Each section id with it’s own set

  • 0

I am setting up a services section. Each section id with it’s own set of li’s. I would like to have the li’s hidden, display:none; and fade in onclick/fade out onclick. Having trouble writing the js for this function with my current markup and styling.

html –

<div id="small-container" class="services">
                    <nav id="services-sections">
                        <a class="active" href="#/one" id="nav-one">One</a>
                        <a href="#/two" id="nav-two">Two</a>
                        <a href="#/three" id="nav-three">Three</a>
                        <a href="#/four" id="nav-four">Four</a>
                        <a href="#/five" id="nav-five">Five</a>
                    </nav>
                    <article id="section-one" class="services-content">
                        <ul class="services">
                            <li class="service-item">One - one </li>
                            <li class="service-item">One - two </li>
                            <li class="service-item">One - three </li>
                        </ul>
                    </article>
                    <article id="section-two" class="services-content">
                        <ul class="services">
                            <li class="service-item">Two - one </li>
                            <li class="service-item">Two - two </li>
                            <li class="service-item">Two - three </li>
                        </ul>
                    </article>
                    <article id="section-three" class="services-content">
                        <ul class="services">
                            <li class="service-item">Three - one </li>
                            <li class="service-item">Three - two </li>
                            <li class="service-item">Three - three </li>
                        </ul>
                    </article>
                    <article id="section-four" class="services-content">
                        <ul class="services">
                            <li class="service-item">Four - one </li>
                            <li class="service-item">Four - two </li>
                            <li class="service-item">Four - three </li>
                        </ul>
                    </article>
                    <article id="section-five" class="services-content">
                        <ul class="services">
                            <li class="service-item">Five - one </li>
                            <li class="service-item">Five - two </li>
                            <li class="service-item">Five - three</li>
                        </ul>
                    </article>
                </div>

css –

#small-container { float: left; width: 240px; color: #000; font-family: Arial, Helvetica, sans-serif; }
        #small-container.services { width: 350px; }
        #services-sections a { text-decoration: none;  text-transform: none; font-weight: bold; font-size: 1em; margin-right: 12px; margin-bottom: 10px; display: inline-block; color: #222; }
        #services-sections a:hover, #services-sections a.active { color: #AAA; }
        .services-content { display: ; position: relative;  }
        .services-content.active { display: inline-block; }
        .services { list-style-position: inside; list-style: none; }
        .services { *list-style: none; }
        .services.active {}
        .service-item { text-indent: -15px; padding-left: 6px; margin-bottom: 12px; font-size: 12px; cursor: default; }
        .ie8 .service-item { text-indent: -22px; }
        .ie7 .service-item { text-indent: -18px; padding-left: 20px; }  

Any help would be appreciated.
Thanks in advance!

  • 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-03T20:11:36+00:00Added an answer on June 3, 2026 at 8:11 pm
    $("#services-sections > a").click(function () {
        $("#section-" + this.id.split("-")[1]).fadeToggle();
    });
    

    Demo.

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

Sidebar

Related Questions

We have a set of WCF Services being hosted in IIS. In our architecture,
I really like OData (WCF Data Services). In past projects I have coded up
I'm curious to know how I would go about setting up my service to
We have several web services that we have been deploying manually using msdeploy .
I have the following settings in my web.config: <configSections> <sectionGroup name=elmah> <section name=security requirePermission=false
Here's the background: I'm initializing and setting the dataSource in my TTTableViewController like so:
i have a few problems setting up a layout with horizontal sections that should
I have two named instances of SQL Server 2008 and am trying to set
I have followed all the Apple documentation for setting up a service for a
I have a web application that uses a number of WCF Services. I deploy

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.