I Have already set the first value from the first combo-box now i need to send the second variable from second combo-box and receive it in the same php file here is the Ajax:
$(document).ready(function(){
$(".rutas").change(function(){
var id=$(this).val();
var dataString = 'id='+ id;
$.ajax({
type: "POST",
url: "asientos.php",
data: dataString,
cache: false,
success: function(html){
$(".asientos").html(html);}
});
});
});
</script>
Here is the first html combo-box this is functioning perfectly:
<select name="rutas" class="rutas" >
<option value="">Seleccione Ruta</option>;
<?php include 'rutas.php'; ?>
</select>
Here is the second html combo-box that i want to get the value from and send it to the same php file as the first:
Clase: <select name="clase" class="clase">
<option value="A">Clase Ejecutiva</option>;
<option value="B">Clase Media</option>;
<option value="C">Clase Economico</option>;
</select>
Any help would be appreciated, Thank you!