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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:18:10+00:00 2026-05-26T06:18:10+00:00

I was working today and decided to start using JQUERY to make a toggle

  • 0

I was working today and decided to start using JQUERY to make a toggle table for a search site… but I literally started javascript and jquery like a couple days ago. Without the table, it works fine, but when I add the table it doesn’t toggle the table…I want when you click on Filter Search for the table to come underneath and then when you click on filter search again to hide the table… Any help is much appreciated. Heres the code ( i already have jquery referenced in the head)

<div class='filtermore'>
  <h4><a>Filter Search</a></h4>
  <p style="display: none" class='jquery'>

  <table border=0 width="875">
       <tbody>
          <tr>
             <td width="164"><strong>City</strong></td>
             <td width="176"><strong>Price</strong></td>
             <td width="160"><strong>Features</strong></td>
          </tr>
           <tr>
             <td><input type="checkbox"/> City 1</td>
             <td><input type="checkbox"/> Cheap</td>
             <td><input type="checkbox"/> Financing Available</td>
             <td width="357"><input type="checkbox"/> Good for kids</td>
          </tr>
           <tr>
             <td><input type="checkbox"/> City 2</td>
             <td><input type="checkbox"/> Moderate</td>
             <td><input type="checkbox"/> Smoking</td>
             <td><input type="checkbox"/> Accepts Credit Cards</td>
          </tr>
           <tr>
             <td><input type="checkbox"/> City 3</td>
             <td><input type="checkbox"/> Expensive</td>
             <td><input type="checkbox"/> Alcohol</td>
             <td><input type="checkbox"/> Delivery</td>
           </tr>
        </tbody>
     </table>
  </p>
<script>
$("h4").click(function () {
$(".jquery").toggle("slow");
});
</script>


</div>
  • 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-26T06:18:10+00:00Added an answer on May 26, 2026 at 6:18 am

    Technically you are telling the <p> tag to toggle, not the table. While you would assume the table would inherit from the <p>, tables are busted and old-school and render differently in each browser, so you can’t count on them to pay attention. I would add an ID to the table and call toggle on it, or use a child selector in jQuery (which you won’t have learned the first week, for sure) to target the table directly. Something like this:

    <table id="mytable">
    
    $('#mytable').toggle('slow');
    
    // or child selector method
    $('.jquery table').toggle('slow'); 
    
    // or another method, more advanced, but the same idea would be
    $('.jquery :first-child').toggle('slow');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Subversive plugin in Ganymede, but after today's update it stopped working -
Earlier today, I decided to start working on a small control panel for administration
Eclipse was working fine just a day ago. But today, when I click the
I am using DateTime.Now to show something according to today's date, and when working
I know I have done this before, but it isn't working today, nor can
I just got started today developing for Android. I tried to make an application
Well been working for hours today so i might be missing something silly, but,
today I discovered the wonderful world of CMS and decided to started exploring this
I'm sure this is simple but my brain just isnt working today! I have
I had started the Rails app yesterday and got everything working. Then today 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.