0
I’m making a very simple evaluation system using form validation (know q n is correct but it’s just a study), and have radios in html along with label and img, n know how to make so that when a radio is selected, the label(img) stays with display = None.
<div class="fomulario">
<form class="avlac">
<input type="radio" id="mtruim" name="av1" value="Muito Ruim">
<label for="mtruim"><img name="imgl" id="img1" src="img/mtruim.png"></label>
<input type="radio" id="ruim" name="av1" value="Ruim">
<label for="ruim"><img name="imgl" id="img2" src="img/ruim.png"></label>
<input type="radio" id="maisoumenos" name="av1" value="Mais ou Menos">
<label for="maisoumenos"><img name="imgl" id="img3" src="img/maismenos.png"></label>
<input type="radio" id="bom" name="av1" value="Bom">
<label for="bom"><img name="imgl" id="img4" src="img/bom.png"></label>
<input type="radio" id="mtbom" name="av1" value="Muito Bom">
<label for="mtbom"><img name="imgl" id="img5" src="img/mtbom.png"></label>
<input type="radio" id="otimo" name="av1" value="Otimo">
<label for="otimo"><img name="imgl" id="img6" src="img/otimo.png"></label>
<input type="button" name="envio" value="ENVIAR" onclick="enviar1()">
</form>
</div>
i’m still starting to study jquery, but I’ll try to apply, mt thanks!!!
– Pedro Garcia
in your case I will have to fzer for each radio, right?
– Pedro Garcia
in the first case yes, but I edited the answer! so you can capture them all and you don’t need to do them individually
– 13dev