I have a SELECT that when displayed and select the option, sends the value to an INPUT text. The issue is that I want the SELECT button to not change the name, that is, to always type TYPE:
<div class="input-group-btn">
<select type="button" name="type" class="btn btn-default dropdown-toggle" id="dropdown" >
<option value="">Type</option>
<option value="Productivity">Productivity</option>
<option value="Customer Service">Customer Service</option>
<option value="Administration">Administration</option>
<option value="Computers">Computers</option>
</select>
</div>
<input type="text" id="mytext" class="form-control">
SCRIPT
var select = document.getElementById('dropdown');
select.addEventListener('change', function(event) {
var select = event.target;
var indiceSeleccionado = select.selectedIndex;
var elementoSeleccionado = select.options[indiceSeleccionado];
var texto = document.getElementById('mytext');
texto.value = select.value;
})