Skip to content

Commit

Permalink
Merge pull request #88 from lonix1/patch-1
Browse files Browse the repository at this point in the history
docs: update validation for dynamic form
  • Loading branch information
dahlbyk authored Dec 29, 2023
2 parents f5ff44d + 65b8e5c commit d9cbcd4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,12 @@ let v = new aspnetValidation.ValidationService();
v.bootstrap({ watch: true });
```

Alternatively, to update the validation service for a specific form (which was created or modified dynamically) without using a `MutationObserver`:
```js
let form = document.getElementById('my-form');
v.scan(form);
```

## Logging

There is a rudimentary logging infrastructure in place if you want to get more insight into what the library is doing.
Expand All @@ -254,4 +260,4 @@ export interface Logger {

let v = new aspnetValidation.ValidationService(console);
v.bootstrap();
```
```

0 comments on commit d9cbcd4

Please sign in to comment.