Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/05/2010, 09:13
chifliiiii
 
Fecha de Ingreso: abril-2008
Ubicación: MDQ
Mensajes: 54
Antigüedad: 16 años, 1 mes
Puntos: 2
Respuesta: tomar valor de un campo

Proba el siguiente código y contame

Código:
$('input').change(function () {
 if(this.id.match(/^first([0-9])$/) ){

 var id= this.id.match(/[0-9]$/);
 $('#label-au-'+id).html($('#first'+id).val());


 }
 if(this.id.match(/^last[0-9]$/) ){

 var id= this.id.match(/[0-9]$/);
 $('#label-au-'+id).html($('#label-au-'+id).html() + ', ' + $('#last'+id).val());
 }

 });
Seguro que se puede optimizar pero deberia funcionar. Saludos!!!