Remove :valid pseudo class from inputs with Javsacript
问题 I have a form with multiple sections. Each section is validated manually using Bootstrap 4 validation (without submitting the form for real). This works fine with the code below; let eventCreationForm = $(".event-creation-form"); if (!eventCreationForm[0].checkValidity()) { eventCreationForm.find(":submit").click(); } However, I only want to highlight the inputs that are invalid. I.e, don't highlight valid inputs in green. Rather than overwrite the bootstrap styles for this, I figured I would