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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:03:03+00:00 2026-06-04T09:03:03+00:00

im building a search engine with php/sphinx/jquery and i have most of it working

  • 0

im building a search engine with php/sphinx/jquery and i have most of it working except for the filtering the search results. the search results aren’t filter submitted rather, all the results are displayed then im trying to use jquery to hide the unmatched results when a checkbox is clicked on.

i created a fiddle for it here http://jsfiddle.net/LEZAh/

what works:
checking a box and have the corresponding element show, and when another box is checked add it to the allowed boxes to show.

what doesn’t work:
when you have more than one checkbox checked and you uncheck one of them, the corresponding element does not show.

sorry for the bad explanation but the fillde will speak for its self thanks!

  • 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-04T09:03:04+00:00Added an answer on June 4, 2026 at 9:03 am

    Just as an addition to the excellent post above (mrtsherman, ahren), the last line of your else statement was causing the problem. A quick and dirty solution would be:

        //$(".ni-search"+checks).show(); //this was the offending line
    
        $("#cat_"+$(this).attr('id')).hide(); //instead of showing everything just hide what was clicked
    

    I’ve run this in your fiddle successfully as well.

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

Sidebar

Related Questions

If I'm building a commercial search engine to display results from Yahoo! search, should
I'm building a source code search engine, and I'm returning the results on a
I'm building a search engine for documents using asp.net mvc. The results of the
I am working on building a search-engine friendly CMS. I know that perhaps one
I'm working on building a search engine in my application, and because I don't
I am working on building my first search-engine friendly CMS. I know that perhaps
I'm building a search engine for cars. When viewing the search results, on the
I am building a search engine, and have a not so unique ID for
I'm building a small web search engine for searching about 1 million web pages
I am building a search engine in Java. The search engine should search for

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.