Skip to content

Commit d9cbcd4

Browse files
authored
Merge pull request #88 from lonix1/patch-1
docs: update validation for dynamic form
2 parents f5ff44d + 65b8e5c commit d9cbcd4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.MD

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@ let v = new aspnetValidation.ValidationService();
239239
v.bootstrap({ watch: true });
240240
```
241241

242+
Alternatively, to update the validation service for a specific form (which was created or modified dynamically) without using a `MutationObserver`:
243+
```js
244+
let form = document.getElementById('my-form');
245+
v.scan(form);
246+
```
247+
242248
## Logging
243249

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

255261
let v = new aspnetValidation.ValidationService(console);
256262
v.bootstrap();
257-
```
263+
```

0 commit comments

Comments
 (0)