about "search text of dropdown "

Questionsabout "search text of dropdown "
Chao Shun Jenq asked 11 years ago

Hello,

my dropdown table as below:

key value
—— ——-
001 ACCA
101 BBBB

when we type the letter "1", the curser will jump to "101" automatically.
if i don't want to search the "key" cloumn,
i want to search the "value" column,
(when i type the letter "A", the dropdown list will display the "value" is begin with letter "A" only.)

how to do it?

Rgds,

1 Answers
Abu Ghufran answered 11 years ago

Hello,

Try setting dbname along with column properties.

$col["dbname"] = "new-value-field-name";

When dbname is set, it will be used in searching instead of $col["name"]

Your Answer

5 + 17 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?