0

Hi,
I am working with PHP. I have a field in my form, which is basically a text box. But as the user start to type it will show a list of matching items, fetched from mysql table. I can have a drop down, but in a drop down , I can't insert text. How to solve this? Should I use ajax or js or some thing else?

3
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by SolidSolutions
0

can you explain it differently, I do not understand what you need.

Do you already have this working as you want:
"I have a field in my form, which is basically a text box. But as the user start to type it will show a list of matching items, fetched from mysql table."

And you want a dropdown box that you can type in:
"I can have a drop down, but in a drop down , I can't insert text. How to solve this?"

or are these 2 fields the same thing you are just trying to figure out how to implement the best way?

Try to give me exactly what you need and I'll see what I can do.

0

What you need is 'auto-complete' for the field. You cannot use combination of combo-box with text field... You should be able to find a js library/file that someone has implemented it. It was quite a hot topic a while back ago about implementing auto-complete form.

0

Actually, I have implemented the same using drop down. But now I want to do this using a text-box/combo-box.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.