1
I need to delete the text contained within the tag label ("Justification") with jquery, follow the code:
function add_text() {
if ($("#tipo").val() == "Falta") {
$(".b").remove();
$("#just").remove();
$("#justificativa").remove();
}
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<select id="tipo" name="tipo" onchange="add_text()"><option>Falta</option><option>Falta Justificada</option><option>Fardamento Incompleto</option><option selected="">Entrada/Saída Autorizada</option><option>Indisciplína/Outros</option></select><br>
<label>Justificativa: </label><br><textarea required placeholder='Digite a justificativa do aluno...' title='Seja objetivo(a).' rows='5' name='obs' cols='50' id='justificativa'></textarea>
She may have ID ?
– teliz
Yes @teliz can yes.
– Carlos Henrique