Comments (6)
I think the problem is with .children
; it only finds direct children, but the inputs are contained in control-groups. If I change it to .find
and run it on your page, it seems to pick up the validation.
Does that fix it?
It doesn't seem to be respecting "preventSubmit" right now, looks like I've set the default option wrong. Gah. I've just fixed this in GitHub. You can call jqBV with .jqBootstrapValidation({preventSubmit: true})
with your current copy of jqBV to force the user to correct errors before the form is submitted.
Thanks
RRaven
from jqbootstrapvalidation.
Awesome. I should have thought to try .find
. Thanks!
from jqbootstrapvalidation.
I pulled the current version from GitHub, and set {preventSubmit: true}, but it's still not respecting it. Not sure what's going on with that one. I've got a lot on my plate today, but I'll play around with it later and see what I can figure out.
from jqbootstrapvalidation.
This looks intermittent, it does sometimes stop it. Is anything else listening to the form submit method?
~~I'll try and have a better look in ~8h~~, I've not had chance to code last night I'm afraid.
from jqbootstrapvalidation.
In removing some other debug code, it looks like the e.preventDefault()
was removed too, meaning it wouldn't stop forms from submitting. I was using an old copy, which is why it looked intermittent on my end. Apologies for the inconvenience!
from jqbootstrapvalidation.
Sweet! Thanks.
from jqbootstrapvalidation.
Related Issues (20)
- Destroy undoes validations
- I use jquery ui to change the selectmenu,how can i to validate the selectmenu?
- Pattern
- Warning Don't Show
- jqBootstrapvalidation callback validation function not working after form validation
- filter does not affect "required" item
- Deprecated dependency "jQuery" in package.json
- jsBootstrapValidation it's not working with Bootstrap-select HOT 1
- The email [email protected] is correct? HOT 1
- Not working properly with jQuery > 1.7.2 HOT 2
- Remove wrong Comments
- Please add to JSDelivr HOT 1
- Not required Select menu tag have a red borde HOT 1
- How can you dynamically trigger validation of a single field? HOT 2
- Regex not working, input is never seen as valid
- i have two issues with the jqBootstrapValidation
- Validation field depending respect another 2 fields
- An email address with a TLD longer than four letters (like ".today") is marked invalid
- Dynamic Validate Problem
- How to make it work in modal
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 jqbootstrapvalidation.