1
I have the following code that generates the printable form in the image...
<div class="form-check form-group" id="areaTermosCondicoes">
<input type="checkbox" id="accept-term" class="form-check-input">
<label for="accept-term" class="form-check-label">Li e concordo com os <a href="#">Termos de uso</a></label>
<div class="invalid-feedback">
<span class="alert-message"></span>
</div>
<div class="valid-feedback">
<span class="alert-message"></span>
</div>
<button type="button" class="btn btn-secundary ml-2" id="cadastrar" onclick="cadastrar()" type="submit">Cadastrar-se como <span></span></button>
</div>
I needed to get the data marking the terms and conditions of this form to validate also... But I’m not getting...
the code I’m using in Js is:
let termosCondicoes = document.querySelector('form#formCadastro #accept-term')
Just one question: why would it have to be in Vanilla since you’re using jQuery?
– Sam
Why tb there are two Ivs
<div class="valid-feedback">
?– Sam