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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:10:04+00:00 2026-06-10T03:10:04+00:00

So I have a string of Jquery stuff and I’m not sure why one

  • 0

So I have a string of Jquery stuff and I’m not sure why one part isn’t working.

I have a structure like this

<div id="wrapper">
    <span class="UnlikelyHeader"> Title Here</span>
    <div id="unlikely">
        <div class="blah"></div>
        <div class="blah"></div>
        <div class="blah"></div>
    </div>

Its my goal to make the div “Unlikely” hidden by default, and to use a slide toggle when you click on the span. Here’s what I have for code thus far (Note, the hidden / odd/ even are the working implementation of this)

        jQuery(document).ready(function() {
            jQuery(".Hidden").hide();
            jQuery("#Unlikely.hide()");
            jQuery(".Even").click(function()
            {
                jQuery(this).next(".Hidden").slideToggle(500);
            });
            jQuery(".Odd").click(function()
            {
                jQuery(this).next(".Hidden").slideToggle(500);
            });
            jQuery(".UnlikelyHeader").click(function()
            {
                jQuery(this).next("#Unlikely").slideToggle(500);
            });
        });

Also note: I’ve tried using #Unlikely.children().hide() and other methods to hide the stuff that I don’t want displayed by default.

  • 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-10T03:10:06+00:00Added an answer on June 10, 2026 at 3:10 am

    I’m a big fan of doing this instead –

    $('.UnlikelyHeader').click(function() {
     $('#unlikely').slideDown(500);   
    });
    

    and giving it the property of display:none in the CSS.

    Working Example – http://jsfiddle.net/ne7MU/ (without toggle)
    http://jsfiddle.net/ne7MU/1/ (with toggle)

    Hope my interpretation is correct….

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

Sidebar

Related Questions

I have a jquery block that does some ajax stuff like this: $.ajax({ url:
I have a web service that returns this string via the jQuery $.ajax() call
I have string that look like Array that fetched from other webservice like this
I have a jQuery post something like var arr = ['some', 'string', 'array']; jQuery.post('saveTheValues',
I have the following html: <div id=box> <span>stuff.....</span> </div> What i'd like to do
I'm really new at this jquery stuff. I have a wcf web service running
I have jquery function which looks like this function MonitorLoadStatus(loadId) { var url =
I have HTML/jQuery like this: <select id=userlist name=userlist> <option value=''></option> <option value=ADJUDICATION>ADJUDICATION</option> <option value=ADMINISTRATIVE>ADMINISTRATIVE
i prefer jquery. let's say i have a string with , adam, lisa, john,
In my jQuery I have a myTable string: var myTable = <table width='100%'><tr>; After

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.