-2
I have a list of options on the tag select
, and I want to show a specific text in a field input
, depending on the option chosen in the field select
.
If the option "TRANSPARENT" or "FROSTED" is chosen, the field input
"Print Orientation", will be filled with the text "INTERNAL". If the option "PEARL" or "METALIZED", the input
shall be filled in with the text "EXTERNAL".
Code:
<div id="banner-message" class="span3">
<label for="substrato_imprime">Substrato (Impressão)<span class="required"></span></label>
<select class="span12" name="substrato_imprime" id="substrato_imprime" style="text-transform:uppercase" value="">
<option value="">Selecione</option>
<option value="TRANSPARENTE">TRANSPARENTE</option>
<option value="FOSCO">FOSCO</option>
<option value="PEROLA">PÉROLA</option>
<option value="METALIZADO">METALIZADO</option>
</select>
</div>
<div class="span3">
<label for="camada">Orientação da Impressão<span class="required"></span></label>
<input class="span12" name="camada" id="camada" style="text-transform:uppercase" value="" >
</div>
Possible duplicate of Help in select to create new input text
– sant0will
Julio, please post an excerpt of the code you already have to get a better idea of the problem, I suggest you read this help article from the site: How to create a Minimum, Complete and Verifiable example.
– Pedro Gaspar
These examples are not what I need. Follow the code.
– Júlio Ricardo