Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/10/2011, 08:29
Avatar de chicohot20
chicohot20
 
Fecha de Ingreso: mayo-2009
Mensajes: 388
Antigüedad: 15 años
Puntos: 43
Respuesta: Usar enter como Tabulador

Código Javascript:
Ver original
  1. $('input[type=text],select').live("keydown", function(e) {
  2.                 if (e.keyCode == 13 ){
  3.                         var inputs = $(this).parents("html").eq(0).find("input[type=text],select");
  4.                         var idx = inputs.index(this);
  5.                         if (idx == inputs.length - 1) {
  6.                                 inputs[0].select()
  7.                         } else {
  8.                                 inputs[idx + 1].focus();
  9.                                 inputs[idx + 1].select();
  10.                         }
  11.                         return false;
  12.                 }
  13.         });