3
I am making an application in which the user must select his ddi. The ddi are in a select
thus:
<select name="paises" id="ddi">
<option value="55" id="bra">Brasil</option>
<option value="1" id="eua">Eua</option>
</select>
I put two example lines, there are several. I would like when the user selected the country, for example, Brazil what appeared after selected was the 55 and not the text
Brazil. I hope I can explain.
Hello
@lufizi
! How is your Javascript? Do you want select to display the name of the Parent while choosing and then switching to the number? or where you want to show this55
?– Sergio
What’s the matter with something like
<option value="55" id="bra">55 - Brasil</option>
?– BrTkCa