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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:33:53+00:00 2026-06-05T14:33:53+00:00

I am looking for a functionality just like cpanel search. Where as you type

  • 0

I am looking for a functionality just like cpanel search. Where as you type in search box, the similar content stays and rest disappears. Example

<div>hello</div>
<div>world</div>
<div>good</div>
<div>bad</div>
<input type="text" name="search">

Now as I start typing “he”. Only hello display and rest of the divs goes to display:none;

Is it possible? People who have seen Cpanel search box, knows what I am asking. I have been looking around for this but could not find anything similar to it. Thanks in advance.

  • 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-05T14:33:55+00:00Added an answer on June 5, 2026 at 2:33 pm

    Sure pretty simple, just use the keyup event and toggle the <div>‘s accordingly

    jsFiddle

    HTML

    <div id="example">
      <div>hello</div>
      <div>world</div>
      <div>good</div>
      <div>bad</div>
    </div>
    <input type="text" name="search" id="search">
    

    JS

    $(function(){
        $('#search').keyup(function(event){
            var keyCode = event.which; // check which key was pressed
            var term = $(this).val();
            $('#example').children().hide(); // hide all
            $('#example').children(':Contains("' + term + '")').show(); // toggle based on term
        });
     });​
    
     $.expr[':'].Contains = function(a, i, m) { 
        return jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase()) >= 0; 
     };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im looking for something like a search and replace functionality in Solr. I have
The functionality I'm looking for: I have a form that will search my 'Proposal'
I'm looking for a routing option similar to the nested RESTFul routes functionality available
I'm looking for the Highlight code -> right-click -> Extract Method type of functionality
It seems like PasteScript 's paster create functionality is just about the only widely
I just see the bing Video search , it is very good looking, I
I am currently looking to make my own collection, which would be just like
What I'm looking for is functionality similar to Google desktop. When you hit Ctrl
I am looking for the functionality that creates PDF Portfolios: The image shows the
I'm looking for some Rails/Facebook functionality that has already been built - as a

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.