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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:05:46+00:00 2026-05-27T07:05:46+00:00

below JQuery code for showing and hiding content of my html page. when i

  • 0

below JQuery code for showing and hiding content of my html page. when i click on show product link all names of product comes below and when click hide product link it hides products. it is working as expected but in IE6.0 when i click on hide product link it is hiding check box also but in mozilla it is as expected

$(document.ready(function()){
    toggleNodes=function(node,action){
        var $content=$('.node-content', node);
        var $symbol=$('.node-label>a>.ui-symbol-green',node);

        If  ( var ($symbol.hasClass('ui-symbol-circle-minus') && 
              (action==undefined||action=='hide')))
        {
            $symbol.removeClass('ui-symbol-circle-minus');
            $symbol.addClass('ui-symbol-circle-plus');
            $info.addClass('closed');
            $content.hide();
        }
        else if($symbol.hasClass('ui-symbol-circle-plus')) && 
                (action=='undefined'||action=='undefined')
            $symbol.addClass('ui-symbol-circle-minus');

        $symbol.removeClass('ui-symbol-circle-plus');
        $info.removeClass('closed');
        $content.show();
      }
      return false;
    }

    toggleAllNodes=function(tree,action){
        $('.node',tree).each(function(node)){
            toggleNOde(node,action);
        });
    }

    $('.tree .nodelabel>a').click(function(event)){
        toggleNode(event.currentTarget.parentNode.parentNode);
        event.preventDefault();
        return false;
    });
});
return false;

Please suggest how to correct this bug.

  • 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-05-27T07:05:46+00:00Added an answer on May 27, 2026 at 7:05 am

    you have to put var before the function defining.. IE has problems with it!

    $(document.ready(function()){
        var toggleNodes=function(node,action) {
            var $content=$('.node-content', node);
            var $symbol=$('.node-label>a>.ui-symbol-green',node);
    
            // also think that this IF statement is not going to work for IE (!not sure)
            if( var ($symbol.hasClass('ui-symbol-circle-minus') && (action==undefined||action=='hide'))) {
                $symbol.removeClass('ui-symbol-circle-minus');
                $symbol.addClass('ui-symbol-circle-plus');
                $info.addClass('closed');
                $content.hide();
            }
            else if($symbol.hasClass('ui-symbol-circle-plus')) && (action=='undefined'||action=='undefined')
                $symbol.addClass('ui-symbol-circle-minus');
    
            $symbol.removeClass('ui-symbol-circle-plus');
            $info.removeClass('closed');
            $content.show();}
            return false;
        }
    
        var toggleAllNodes=function(tree,action){
            $('.node',tree).each(function(node)){
                toggleNOde(node,action);
            });
        }
    
        $('.tree .nodelabel>a').click(function(event)){
            toggleNode(event.currentTarget.parentNode.parentNode);
            event.preventDefault();
            return false;
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The below HTML/CSS/Javascript (jQuery) code displays the #makes select box. Selecting an option displays
I am new to jquery. I am using the below code for showing autosuggest
in my jQuery code, removeClass is not working. Whenever I click hide link the
I am using the below jquery code to call a ajax function in my
I am having a very specific problem in JQuery The code below is used
I have this javascript code below that uses jquery, it is suppoed to be
Below is the complete code of the jquery AJAX tab script I am working
The below code is very simple. I have a jQuery autocomplete bound to an
In the code snippet below, from my jQuery setup, I need to check if
I am using jquery to create a custom dropdown with the code below. I

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.