I’ve a country list with selectize. But I want to also include the flag of each country before the name of the country.
I haven’t found any info about this yet. I was wondering if this is possible and how to achieve.
I’m using just html css and js with jquery.
2
Answers
Well, if you follow standars for country code, you can use an API, lik this one:
enter link description here
Yep, it’s possible to render custom children in selectize according to this example.
Check out the render key, you should be able to add an
<img>
tag in there. I made a little example of what I think you’re asking for:html
css
Simply place the markup in place of the value in the example and that should give you something like what you’re looking for I think