0
Good afternoon! I am developing a form for registration of cars, where I will inform the year of manufacture and year that stopped manufacturing. I am pulling the dice a table to select the manufacturing year, and for the final year I am recovering the value with the following code:
<script>
$('#ano').change(function(e) {
var texto = document.getElementById('ano').value;
document.getElementById('ano2').value = texto;
})
</script>
I need to take this amount and add up until it is the final year of the vehicle and make this value appear in my select form.
<div class="field">
<label class="label">Ano do Veículo Final</label>
<div class="select is-fullwidth">
<div class="field">
<select name="ano2" id='ano2'>
</select>
</div>
</div>
</div>