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

  • daisyKutter
    link
    fedilink
    arrow-up
    2
    ·
    4 months ago

    Do you have code to share? I need to see what you are doing in order to help you

  • Rick_C137@programming.devOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 months ago

    Thanks all for your input.

    My only workaround was to check programmatically all those input and set them with a setCustomValidity()

    Too bad there isn’t a method to relaunch the validity across all the page :/

    Cheers