Ver Mensaje Individual
  #8 (permalink)  
Antiguo 13/01/2009, 17:01
Avatar de hoberwilly
hoberwilly
 
Fecha de Ingreso: julio-2008
Ubicación: Lima - Perú
Mensajes: 769
Antigüedad: 15 años, 10 meses
Puntos: 2
Respuesta: Saltar Cajas de Textos con Enter

Necesito de sus colaboraciones para mi caso,
Acomode en la caja de texto, y esto es lo k hice:
Código php:
Ver original
  1. <!-- <input type="text" name="cantidad[]" onKeypress="return tabular(event,this['cantidad[]']);"> -->
Ahora lo k me falta hacer unas variantes a la funcion:
Código php:
Ver original
  1. <!-- function tabular(e,frm)               //AQUI CAMBIE EL 2DO VALOR DE LA FUNCION OBJ X FRM
  2. {
  3.     tecla=(document.all) ? e.keyCode : e.which;
  4.     if(tecla!=13) return;
  5.     //frm=obj.form;    ////ESTO LO QUITE
  6.     for(i=0;i<frm.elements.length;i++)
  7.     if(frm.elements[i]==obj)
  8.     {
  9.         if(i==frm.elements.length-1)
  10.             i=-1;
  11.         break
  12.     }
  13.     if(frm.elements[i+1].disabled==true)
  14.         tabular(e,frm.elements[i+1]);
  15.     else
  16.         frm.elements[i+1].focus();
  17.     return false;
  18. } -->

Gracias de antemano,