Skip to content

Commit a803912

Browse files
authored
jQuery unobtrusive validation isn't supported
1 parent 5a02d01 commit a803912

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

aspnetcore/blazor/forms/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,16 @@ In Blazor Web Apps, client-side validation requires an active Blazor SignalR cir
436436

437437
All of the [data annotation built-in validators](xref:mvc/models/validation#built-in-attributes) are supported in Blazor except for the [`[Remote]` validation attribute](xref:mvc/models/validation#remote-attribute).
438438

439+
jQuery validation isn't supported for Razor components. For client-side validation, we recommend any of the following approaches:
440+
441+
* For either a Blazor Web App that adopts interactive rendering or a standalone Blazor Web Assembly app, follow the guidance in <xref:blazor/forms/validation>.
442+
* Use native HTML validation attributes (see [Client-side form validation (MDN documentation)](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)).
443+
* Adopt a third-party validation JavaScript library.
444+
445+
<!-- UPDATE 10.0 - Remove if the feature is realized. -->
446+
447+
For statically-rendered forms on the server, providing a new mechanism for client-side validation is under consideration for .NET 10 in late 2025. For more information, see [Create server rendered forms with client validation using Blazor without a circuit (`dotnet/aspnetcore` #51040)](https://github.com/dotnet/aspnetcore/issues/51040).
448+
439449
## Additional resources
440450

441451
:::moniker range=">= aspnetcore-8.0"

0 commit comments

Comments
 (0)