1
Follow the full Javascript code:
var idcl = document.getElementById('idcl').value;
$(document).ready(function(){
$('#estados').change(function(){
$('#cidades').load('cidades.php?estado='+$('#estados').val()+'&cliente='+idcl);
$('#transacao').load('transacao.php?estado='+$('#estados').val()+'&cliente='+idcl+'&teste='+$('#cidades').val());
});
});
Select fields:
<select name="cidades" id="cidades">...</select>
<select name="transacao" id="transacao">...</select>
I’m not getting to make this parameter: teste='+$('#cidades').val()
receive the value you are in #cidades
.
plays this value in a variable and dps concatenates this variable.
– RBoschini
with do this? me an example, for I have little knowledge in js
– Gladison Neuza Perosini
$('#states') and $('#cities') is a <input> or a <select> ?
– SneepS NinjA
Possible duplicate of Send more than one parameter in GET request
– Daniel Omine