7
submitted 5 months ago* (last edited 4 months ago) by Rick_C137@programming.dev to c/javascript@programming.dev

~~ cross-posted from: https://programming.dev/post/9179830 ~~

Hi,

I'm loading some content with XHR (aka Ajax) the loaded input elements that have a invalid value assigned are not checked trough the validation process.

so the CSS styling with :invalid is for example not working etc..

is there a way to force the validation process on those elements ?

edit: Browser is Firefox

Thanks.

you are viewing a single comment's thread
view the rest of the comments
[-] daisyKutter@lemmy.ml 1 points 5 months ago

There are several proposed workarounds there, like

https://caniuse.com/constraint-validation

this post was submitted on 27 Jan 2024
7 points (100.0% liked)

JavaScript

1700 readers
1 users here now

founded 1 year ago
MODERATORS