Comments (5)
By number, do you mean 'value'? Have you tried the 'includeBlank' option? (undocumented, so check the source code).
from fancyselect.
No I mean a number like: 01, 02. It accepts 1 or 2. The 0 before it is the problem.
from fancyselect.
but what exactly do you mean by number? could you provide some example code?
from fancyselect.
I'm having this issue too. So if you have a select for say month.
If your values for your months are: 01, 02, 03 etc. Then fancyselect doesn't work.
If you remove the leading 0 from your values, eg. 1, 2, 3 etc then it does.
from fancyselect.
Presumably this is happening because of these lines: https://github.com/octopuscreative/FancySelect/blob/master/fancySelect.coffee#L184-L186
Would someone mind checking if opt.val().toString()
fixes the issue? I'd gladly accept a PR if that does the trick.
from fancyselect.
Related Issues (20)
- Touch devices: show styled trigger but use browser's default UI to select an option HOT 7
- Zepto compatibility
- Question regarding click event & chaining.
- What is the best way to have 2 different select styles? HOT 2
- FancySelect not showing up on Windows Phone devices
- Minimal styles
- Links in dropdown options HOT 1
- Select not opened in iphone HOT 4
- Width Of Select Box and Dropdown Box
- Update Readme.md HOT 1
- OptGroups not supported HOT 4
- Validation On Select Box HOT 11
- A way to select a value using jquery HOT 2
- close dropdown problem HOT 1
- Add Bower and NPM Support HOT 3
- IE11 scroll Issue
- Tabbing + keydown in Firefox v50 opens native & styled dropdown's
- Filter or Hide options
- select item doesn't change in multiple select boxes
- Easily style select elements in all major browsers? How so?
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 fancyselect.