I have the following code:
<form>
<input type="radio" id="div1" name="consulta[]" value="1">Opção 1
<input type="radio" id="div2" name="consulta[]" value="2">Opção 2
<input type="submit" value="Registrar">
</form>
<div id="m1" style="display:none">
DIV 1
</div>
<div id="m2" style="display:none">
DIV 2
</div>
I need DIV 1 only to appear (changing its display in the css) when the radius div1 is clicked, and the same for DIV 2.
What is the simplest way to do this?