1
Hello, I have first select option:
<select name="auto" id="auto">
<option value="">S/N</option>
<option value="S">Sim</option>
<option value="N">Não</option>
</select>
And I also have 2nd select option:
<select name="conta" id="conta">
<option value="">Selecione</option>
<option value="+">Somar</option>
<option value="*">Multiplica</option>
</select>
I have this script
but it’s not working, it doesn’t do any action when selecting the option
auto.
$('#auto').change(function () {
const auto = $('#auto').val();
const conta = $('#conta').val();
$('#auto').val('');
}).change();
I wish that when I choose any option of first select
auto, he put the 2nd select
account in the Select option, if you have any other option already selected, you can?
It’s because here’s the thing, if I choose any option on select 2 and back in the select 1 and choose any option is for the select 2 he return to the standard state, understood?
– Aristófanes Melo