0
I have that function:
<script type="text/javascript">
$(document).ready(function () {
$('#auto').change(function () {
$('#funcao').load('listaQuestaoAutomatica.php?auto=' + $('#auto').val());
}).change();
});
</script>
It passes the value of Select Option
when selecting to another file by parameter, on that line: $('#funcao').load('listaQuestaoAutomatica.php?auto=' + $('#auto').val());
How do I pass also in this function the value of a 2nd Select Option when choosing which is in the same file?
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>
2nd select option
:
<select name="conta" id="conta">
<option value="">Selecione</option>
<option value="+">Somar</option>
<option value="*">Multiplica</option>
</select>
What I wish is this, I select the first select option
, and only when selecting the 2nd select option
it send by parameter to the given link.
Perfect @henriquuepedro, that’s what I was looking for, vlw.
– Aristófanes Melo