Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/07/2012, 12:46
Avatar de Briss
Briss
 
Fecha de Ingreso: junio-2011
Mensajes: 1.293
Antigüedad: 12 años, 10 meses
Puntos: 12
Estraer primera letra y agregar secuencia

Hola a todos tengo un formulario donde se tiene:

Código HTML:
<td >Nombre:</td>
        <td><input type="text" name="nombre" value="" size="25" /></td>
     
      <td>Apellido Paterno</td>
        <td ><input type="text" name="ap" value="" size="25" /></td>

  
      <td>Apellido Materno:</td>
        <td ><input type="text" name="am" value="" size="25" /></td> 
Bien necesito extraer la primera letra del campo nombre, ap y am (ademas de agregarle un numero consecutivo 001)
ejemplo
Nombre: Ana
Apellido Paterno: Díaz
Apellido Materno: Balbuena

ADB001

Pero no sé mucho de javascript alguien podría ayudarme por fa