~~ 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.

  • coffee_poops
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    Usually validation is only triggered on change or blur events. Changing the value programmatically doesn’t trigger these events so you need to trigger them yourself.