I thought .checkValidity() would do the trick, but it doesn’t trigger the UI. (caniuse)
It sounds like .reportValidity() does what you want. (caniuse)
I thought .checkValidity() would do the trick, but it doesn’t trigger the UI. (caniuse)
It sounds like .reportValidity() does what you want. (caniuse)