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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:53:56+00:00 2026-06-18T11:53:56+00:00

on load its look like this. on expand like this if i click know

  • 0

on load its look like this.
enter image description here

on expand like this
enter image description here

if i click know how + sign then it will collapse whats new that works fine.

But if click on whats new and again on whats new then collapse works fine
but Image of + sign doesnt change.

I have to change that sign also. please help, Thanks in advance.

HTML

<div class="Wobnavi">
    <ul class="rootFolders">

            <li id="wobsubfolder1">
            <h2 class="more_folders" id="wobsubfolder1"> <a href="#">WHAT'S NEW?</a> </h2>

                   <ul class="subFolders">

                        <li>
                            <a href="#">test</a>
                        </li>

                   </ul>

            </li>

            <li id="WOB-events-folder">
            <h2 class="null" id="WOB-events-folder"> <a href="#">EVENTS</a> </h2>

            </li>

            <li id="wobsubfolder2">
            <h2 class="more_folders" id="wobsubfolder2"> <a href="#">KNOW-HOW</a> </h2>

                   <ul class="subFolders">

                        <li>
                            <a href="#">Legacy &amp; brand values</a>
                        </li>

                   </ul>

            </li>

            <li id="wobsubfolder3">
            <h2 class="null" id="wobsubfolder3"> <a href="#">ATTRACTIONS</a> </h2>

            </li>

            <li id="HERITAGE">
            <h2 class="null" id="HERITAGE"> <a href="#">heritage</a> </h2>

            </li>

    </ul>
</div>

jquery:

jQuery(document).ready(function(){
   jQuery('.Wobnavi .rootFolders h2').click(function(){
    var main = jQuery('.Wobnavi .rootFolders h2');
                 var clk = jQuery(this);
                 var it = main.hasClass('less_folders') ?  (main.removeClass('less_folders'), clk.toggleClass('less_folders')) : clk.toggleClass('less_folders');

var co = jQuery('.subFolders');
                 var el = jQuery(this).next(co);   
                 var doit =  el.is(':hidden') ? ( co.slideUp('1000'), el.slideDown('1000')) : co.slideUp('1000') ;
                });
        });
  • 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-18T11:53:57+00:00Added an answer on June 18, 2026 at 11:53 am

    finally i did it my self.

    jQuery('.Wobnavi .rootFolders h2').click(function(){
                         var clk = jQuery(this);
                         if(clk.hasClass('more_folders')){
                             clk.removeClass('more_folders').addClass('less_folders');
                             jQuery('.Wobnavi .rootFolders h2').each(function( index, ele ){
                                 if( (jQuery(ele).attr('id') != clk.attr('id')) && (jQuery(ele).hasClass('more_folders') || jQuery(ele).hasClass('less_folders'))){
    
                                         jQuery(ele).attr('class','more_folders');
    
                                 }
                             });
                         }else if(clk.hasClass('less_folders')){
                             clk.removeClass('less_folders').addClass('more_folders');
                         }
    
                         var co = jQuery('.subFolders');
                         var el = jQuery(this).next(co);   
                         var doit =  el.is(':hidden') ? ( co.slideUp('1000'), el.slideDown('1000')) : co.slideUp('1000') ;
                    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I will preface this question with the disclaimer that I know there are many
This is a pretty newbie question- please know I'm aware of that. I have
I have an horizontal accordion that I'd like to unfold and then fold again,
I had en idea, which shortly explained was that i would like to load
I am trying to have a BLACK colored UIWebView before its contents load. In
When I load an image in my canvas and specify its src I use
I'm trying to load an UIDocument for a quick preview of its contents (which
Hai am trying to load the variables from parent(flash) to child(flash).Its working fine,. parent
Could not load file or assembly 'EntityFramework, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its
I have an existing pdf, and i want to load it, change its orientation

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.