Jump to content

Textbox working issue to lessen the time in typing

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
newphpcoder

newphpcoder

    Programming Professional

  • Members
  • PipPipPipPipPipPip
  • 477 posts
Good day!

I have a question regarding textbox properties. In my textbox username I want to happen is when I input a letter for example is "l" all the letter started in "l" in my field username was appear, so that the user can choose what she want to type to lessen the time in typing like in the google search. Is it possible?How can I do that?

Thank you in advance

#2
newphpcoder

newphpcoder

    Programming Professional

  • Members
  • PipPipPipPipPipPip
  • 477 posts
I'm sorry....I'm wrong when I said that the textbox or the field is username...it is machine number. Is it possible that when in my machine number field in my table has a data like this: K1, K2, K3, D1, D2, D3 and when I input in textbox the letter K all the first letter in the field machine number that start in letter K appear almost, so that she can used arrow down key to choose what in machine number she want to input. Any possible can I do to fix this issue?

Thank you so much...

#3
xx3004

xx3004

    Newbie

  • Members
  • PipPip
  • 13 posts
Check out jQuery autocomplete here!

jQuery UI - Autocomplete Demos & Documentation

Try it yourself first, I will answer if you have question later!

Enjoy,
xx3004,

#4
DarkLordofthePenguins

DarkLordofthePenguins

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 409 posts
You will need Ajax to do this. It can't be done with just Javascript.
Programming is a journey, not a destination.

#5
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
AJAX is Javascript, and it can do without HTTP requests by querying local array rather than another page.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.