Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/08/2010, 14:27
jonnyalex_1990
 
Fecha de Ingreso: mayo-2010
Mensajes: 153
Antigüedad: 14 años
Puntos: 0
Exclamación Respuesta: Selects dependientes

Hola como hago para que despues de seleccionar el tercero me carguen los datos del clientes en campos de texto.

Código PHP:

<script language="javascript">
$(
document).ready(function(){
    
// Parametros para e combo1
   
$("#combo1").change(function () {
           $(
"#combo1 option:selected").each(function () {
            
//alert($(this).val());
                
elegido=$(this).val();
                $.
post("combo1.php", { elegidoelegido }, function(data){
                $(
"#combo2").html(data);
                $(
"#combo3").html("");
                $(
"#combo4").html("");
            });            
        });
   })
    
// Parametros para el combo2
    
$("#combo2").change(function () {
           $(
"#combo2 option:selected").each(function () {
            
//alert($(this).val());
                
elegido=$(this).val();
                $.
post("combo2.php", { elegidoelegido }, function(data){
                $(
"#combo3").html(data);
            });            
        });
   })
   
// Parametros para el combo3
    
$("#combo3").change(function () {
           $(
"#combo3 option:selected").each(function () {
            
//alert($(this).val());
                
elegido=$(this).val();
                $.
post("combo3.php", { elegidoelegido }, function(data){
                $(
"#combo4").html(data);
            });            
        });
   })
   
});
</script>