aspnet-client-validation
aspnet-client-validation copied to clipboard
A client validation library for ASP.NET MVC that does not require jQuery
I encountered a strange behavior for the Remote validator. After the remote validator fire, regardless of the result, the form is posted even if the form is invalid. It seem...
The `bootstrap` method has some logic to defer loading until `readyState === "complete"`: https://github.com/haacked/aspnet-client-validation/blob/2276f038cd97393b524582a412d08499c80e7d88/src/index.ts#L938-L949 However, this can cause problems if `bootstrap` is called from _within_ the `DOMContentLoaded` event. There are...
It could be useful to call `scan` directly in cases where people want to control when validation is actually loaded. Such as when using Turbo or Htmx. Fixes #21
Fixes #90 Note this does not handle disabled fieldsets because we just rely on the browser for that. If that assumption is incorrect, we can fix that in a subsequent...
After adding a form to the DOM (with `watch` enabled), a call to `isValid()` fails, when submitting the form: ```js window.validationService.isValid(form, false); ``` The error `TypeError: formInputUIDs is undefined` occurs...
The jQuery Validate plugin does not validate fields with the `disabled` attribute. However this library does. If this library's purpose is to be a drop-in replacement, then one could argue...
Hi I suggest to update the docs with a link to the CDN, e.g. https://www.jsdelivr.com/package/npm/aspnet-client-validation e.g. ### Via CDN ```html ```
I would love to replace our jQuery ASP.NET validation with this, but I can't because it's lacking the [highlight](https://jqueryvalidation.org/validate/#highlight) and [unhighlight](https://jqueryvalidation.org/validate/#unhighlight) events that we rely upon. They're part of jQuery...
jQuery unobtrusive validation disables the default Constraints API behaviours. Without it, the constraints validation warnings interfere with the default validation messages:  The solution is to add `novalidate="novalidate"` to the...
Related to https://github.com/haacked/aspnet-client-validation/pull/110 --- I'd like to write some docs for the "remove validation" feature. (I'm unfamiliar with the history of the "undebounce" feature, so I'll leave that for another...