Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/05/2011, 21:36
InKarC
 
Fecha de Ingreso: noviembre-2005
Mensajes: 426
Antigüedad: 18 años, 5 meses
Puntos: 87
Respuesta: Cambiar valor input de formulario

Envíe el select, ya de por si jQuery siempre usa el valor seleccionado.


Código Javascript:
Ver original
  1. $(document).ready(function(){
  2.     $("#centro1").change(function () {
  3.             var elegido=$(this).serialize();
  4.             $.post("datos.php", elegido, function(data){
  5.                 $("#td1").html(data);
  6.             });
  7.     })
  8. });