-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metro.validator.validate issue? #1518
Comments
Hi! |
OMG, shame on me.... I checked, checked, checked and checked again but I just didn't see the stupid mistake. One last question: in data-validate, what is the difference between "number" and "float"? In the Price field I had "required float" and whatever value I entered (I tried, for example, "5" "5.60" "5.") I always got an error. Thanks |
Hi! I extend
Now, for |
Many thank's Olton. It's perfect! |
Hi Olton and welcome back.
I'm trying to create a page where I can insert the data (the small daily expenses) which I will then insert in a sqllite table but without using the FORM tag, just call ajax.
The page and the ajax script:
https://codepen.io/TorakikiSan/pen/EeyWmp
As you can see, for each field I also inserted the data-validate tag which I then go to check in the script when I press the SUBMIT button with the Metro.validator.validate function
Correctly, the script checks (and possibly displays the error) for the first two fields, Item and Quantity, while considering the following fields valid even if the data-validate would indicate an error (try to leave the fields empty for example).
Where am I wrong?
Thanks
The text was updated successfully, but these errors were encountered: