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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:07:07+00:00 2026-06-06T21:07:07+00:00

I created this code in jsfiddle ( http://jsfiddle.net/E7MSN/56/ ) and it works for static

  • 0

I created this code in jsfiddle ( http://jsfiddle.net/E7MSN/56/ ) and it works for static lists, but in my situation, I also have a query on the keyup event that retrieves a different ul/li depending on what I type in to the search box.

What seems to happen is that every time I press up or down, the keyup event is fired and a new query is issued to the server (PHP script returns the ul and li). Then, the element with the “selected” class is reset to the first list item, instead of going up and down when I press the arrow keys like in the jsfiddle example.

I’ve tried using .change for the textbox, but that doesn’t seem to work either.

Any ideas?

  • 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-06T21:07:08+00:00Added an answer on June 6, 2026 at 9:07 pm

    I used the switch statement and I added a default case to handle it instead of putting it at the top of the function. Problem solved!

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

Sidebar

Related Questions

I have created the following code http://jsfiddle.net/N65yS/41/ .. My problem is this.. When I
http://jsfiddle.net/B2rdD/3/ I've Created 25 buttons using HTML and I have written jquery code such
To try to illustrate, I created the following code: http://jsfiddle.net/Ridermansb/SUcmH/4/embedded/result/ Yellow: This is the
In this fiddle http://jsfiddle.net/SySRb/40/ , I created an array with two elements, #f-ONE and
Source code at: http://jsfiddle.net/lski/4aTm5/ I have succeeded in getting the above code in Firefox,
I've created a jsfiddle http://jsfiddle.net/zkLav/ showing the code in action. what's happening is the
I have created this Fiddle with this code: This is my problem I want
I have an array created with this code: var widthRange = new Array(); widthRange[46]
I have made this code to open a database(created in SQLite browser) stored in
I have created this simple JavaScript code that allows a user to click on

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.