allow data-parsley-length to equal exact length
See original GitHub issuethis would helpful for me, if i could to like this data-parsley-length="10"
, corresponding message should be changed (This value length is invalid. It should be between %s and %s characters long.
without between), but of course should keep both messages
i know, that i can create my validation, but i think it should be possible with build-in length validation
Issue Analytics
- State:
- Created 9 years ago
- Comments:6
Top Results From Across the Web
The ultimate documentation - Parsley
Validates that a given string length is between some minimum and maximum value. Specifying both HTML5 attributes minlength and maxlength will enable this ......
Read more >size command in form parsley.js - Stack Overflow
The size attribute you refers to is perfectly working. It affects the input width (the box, not its content). Try putting 10 or...
Read more >Parsley.js Documentation & API - GitHub Pages
Parsley is a dead simple javascript form validation, powerful and UX aware. ... Min Length, parsley-minlength="6", Validates that the length of a string...
Read more >Input Pattern: Use It To Add Basic Data Validation In HTML5 »
The pattern attribute of the <input> element allows you to add basic data ... example [a-zA-Z0-9]+ is a pattern that matches against a...
Read more >Food Portions: Choosing Just Enough for You | NIDDK
Depending on how much you choose to eat, your portion size may or may not match the serving size. To see how many...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@marcandre this is slightly off-topic, but how would you feel about having the
length
validator match exact length and create a new validator likelength-range
which would getlength
’s current behavior?Edit: Submitted a PR to ValidatorJS which demonstrates this
It’s true that this already exists for
type
, so could be made more generic.