Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Search items in drop down LIKE "%xyz%"

  • 2 replies
  • 1 has this problem
  • 105 views
  • Last reply by Reinom

more options

Hi, In website's drop down lists (HTML select elements), I know you can "go to first item starting with xyz" by typing xyz.

But is there a way to go to first item that contains xyz?

For instance, if I have a long drop down list (HTML select) with the name of the countries, I can hightlight "France" by typing "Fra". Can I highlight it by typing something like "ance"? If not, I guess I should open a bugzilla ticket.

My actual usecase is that the select values are not starting with the country names, but starting with special characters " » France", and the number of spaces before the quotes may vary.

Hi, In website's drop down lists (HTML select elements), I know you can "go to first item starting with xyz" by typing xyz. But is there a way to go to first item that contains xyz? For instance, if I have a long drop down list (HTML select) with the name of the countries, I can hightlight "France" by typing "Fra". Can I highlight it by typing something like "ance"? If not, I guess I should open a bugzilla ticket. My actual usecase is that the select values are not starting with the country names, but starting with special characters " » France", and the number of spaces before the quotes may vary.

Chosen solution

You have to enter about:config in the URL bar and set dom.forms.selectSearch = true. It adds ability to filter long drop down lists.

Read this answer in context 👍 1

All Replies (2)

more options

Chosen Solution

You have to enter about:config in the URL bar and set dom.forms.selectSearch = true. It adds ability to filter long drop down lists.

more options

Wow, this is very neat! Thanks!

Why isn't this option activated by default (maybe with another preference to show it only for select with more than N options)?

(Maybe I should ask that on bugzilla then, please tell me if so)