Comments (2)
Hey @Webberjo, yeah - doing something like may well cause problems. I think that yes, the internal code relies on index (which is nice and fast). The next version will include data-preferred="US,CA,MX"
and data-preferred-delim="-----"
options to shift specific countries to the top. I'll try to get that going today.
from country-region-selector.
Added in 0.5.0: https://github.com/benkeen/country-region-selector/releases/tag/0.5.0
Thanks!
from country-region-selector.
Related Issues (20)
- Update lib for es6
- Drop jQuery version? HOT 3
- data-preferred="" attribute only shows first country, doesn't match region HOT 2
- Hampshire (County of Southampton), UK HOT 1
- Dropdown displays states sorted by short-name rather than by name HOT 3
- data-default-value not set for region if only 1 country HOT 3
- localization support
- Shortcode detection? HOT 1
- Loading on data-preferred-delim and not data-default-option values
- Spain regions are replaced by provinces HOT 2
- Region short value type returned numbers HOT 1
- Error when select some countries e.g. Kazakhstan with the 'shortcode' enabled
- How to intiliaze crs for dynamic select ? HOT 1
- how to make a default value of select please HOT 1
- Update regions for France HOT 2
- How to load from the data from a url instead of putting it directly in the script file HOT 1
- How to use two country-region-selector in one page
- How to import it while building? HOT 2
- on the production build there's a console.log that should not be HOT 11
- How to style (change color) the default 'please select' option?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from country-region-selector.