As the title says, I would like that when selecting a value, in this case "European" or "American", it shows a numeric value in the "long", "high" and "wide" fields.
I give you the code:
var D = document.getElementById("D");
var P = document.getElementById("P");
var S = document.getElementById("S");
S.onclick = function() {
document.getElementById('tipoenvio').style.display = "block";
}
P.onclick = function() {
document.getElementById('tipoenvio').style.display = "none";
}
D.onclick = function() {
document.getElementById('tipoenvio').style.display = "none";
}
<input type='radio' name='tipo-envio' value='D' tabindex="1" id="D" /><span> Docs</font></span> 
<input type='radio' name='tipo-envio' value='P' tabindex="1" id="P" checked="checked" /><span> Paquetes</span> 
<input type='radio' name='tipo-envio' value='S' tabindex="1" id="S" />
<span> Palé </span><br />
<div id="tipoenvio" style="display:none">
<input type="radio" name="tipo-envio" id="1" value="P">
<font color="black" size="1x">Europeo</font>  
<input type="radio" name="tipo-envio" id="2" value="P">
<font color="black" size="1x">Americano</font>  
<input type="radio" name="tipo-envio" id="3" value="P">
<font color="black" size="1x">Otros</font>
</div>
<span class="pl_bloq_titulo">Peso:</span>
<div class="bloq_cuadro">
<input type="text" name="peso_1" id="peso_1" class="validar_imput" maxlength="6" autocomplete="off" tabindex="7" /><span class="form_label1">kg</span>
</div>
<span class="pl_bloq_titulo">Largo:</span>
<div class="bloq_cuadro">
<input type="text" name="largo_1" id="largo_1" class="validar_imput" maxlength="6" autocomplete="off" tabindex="8" /><span class="form_label1">cm</span>
</div>
<span class="pl_bloq_titulo">Ancho:</span>
<div class="bloq_cuadro">
<input type="text" name="ancho_1" id="ancho_1" class="validar_imput" maxlength="6" autocomplete="off" tabindex="9" /><span class="form_label1">cm</span>
</div>
<span class="pl_bloq_titulo">Alto:</span>
<div class="bloq_cuadro">
<input type="text" name="alto_1" id="alto_1" class="validar_imput" maxlength="6" autocomplete="off" tabindex="10" /><span class="form_label1">cm</span>
</div>