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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:23:18+00:00 2026-05-20T19:23:18+00:00

I have a live search facility that narrows down results in a table as

  • 0

I have a live search facility that narrows down results in a table as you type – all works fine.

I now want to use a dropdown to populate the search field (text box) as i plan to have the search field hidden. – I have done this using the following:

$('#filter').change(function(){ 
  filterby = $('#filter').val();
  $("input#SearchBox").val(filterby);
});

The problem i have is that when you choose an option from the dropdown it does populate the text field but the results do not update unless i click in the text box and hit a key (space bar for example).

I assume it requires keyboard input and thus only updates if i add a space at the end but is there a way of changing the above code to get the searchbox to recognise it automatically?

Thanks for your help

  • 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-20T19:23:19+00:00Added an answer on May 20, 2026 at 7:23 pm

    You need to use trigger to make it recognize that the input is different. The live search you are using probably uses keyup or keypress.

    $("input#SearchBox").val(filterby).trigger('keyup'); 
    

    If trigger('keyup') or ‘keypress’ doesn’t work, you might also try it with ‘change’.

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

Sidebar

Related Questions

I have a live search on my help page that searches our help database
We have a live MySQL database that is 99% INSERTs, around 100 per second.
I have a test web service replicating a live web service that hasn't been
I have a program that captures live data from a piece of hardware on
I have a backup server that automatically backs up my live site, both files
I have created a PHP-script to update a web server that is live inside
O, so i have a 'live search' ajax search, which currently runs an sql
I'm trying to implement a better live(search as you type) contact search in my
I've been trying to figure out how the live search function at http://www.codeandtheory.com/#/work/ works.
I have a script that appends some rows to a table. One of the

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.