Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Learn More

Search items in drop down LIKE "%xyz%"

  • 2 odpovede
  • 1 má tento problém
  • 94 zobrazení
  • Posledná odpoveď od 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.

Vybrané riešenie

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.

Čítať túto odpoveď v kontexte 👍 1

Všetky odpovede (2)

more options

Vybrané riešenie

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)