I've hit a roadblock here. I just can't figure out how to manipulate JS and bypass validation.
I want to trigger this - onkeyup when <input2 pwd>
matches <input pwd>
.l_input:valid + span::after {
position: absolute;
content: '✓';
color: #009000;
font-size: 1vw;}
And here's my awesome JS function
var check = function() {
if (document.getElementById('password').value == document.getElementById('c_password').value) {
document.getElementById('validity').is(':valid'); //FORCE :VALID
} else {document.getElementById('validity').is(':invalid'); // :INVALID
}} // 'validity' is span
Currently, CSS triggers after any symbol (because it doesn't have a pattern)
HTML:
<input onkeyup="check()" type=password id=password placeholder='Password'>
<input onkeyup="check()" type=password id=c_password placeholder='Confirmation Password'>