mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 17:35:54 +03:00
[GH-ISSUE #1114] using these in options on a select #525
Labels
No labels
3rd-party
3rd-party
bug
code
documentation
enhancement
fixed-in-master
flag-request
help needed
missing-flag
missing-flag
pull-request
wrong-flag
wrong-flag
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flag-icons#525
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Offbeatmammal on GitHub (Jul 24, 2023).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/1114
has anyone worked out a way (plain html/css, jQuery, or Bootstrap) to use these in a select so I could have (for instance) each line of the dropdown containing the flag followed by the country name?
for now I'm using a modified version of the custom select code from https://www.w3schools.com/howto/howto_custom_select.asp but wondered if there was a cleaner/more elegant way to achieve this
@lipis commented on GitHub (Jul 25, 2023):
You can't add images to
selectyour best option for that is to use Emoji flags, otherwise you need to have your own component handling the images