Ver Mensaje Individual
  #6 (permalink)  
Antiguo 25/10/2011, 13:23
tumbero_x
 
Fecha de Ingreso: octubre-2010
Ubicación: Buenos Aires
Mensajes: 557
Antigüedad: 13 años, 6 meses
Puntos: 4
Respuesta: Usar enter como Tabulador

hola amigos !!!
sigo con problemas con esta funcion
Código Javascript:
Ver original
  1. $('input,select').live("keypress", function(e) {
  2.                 if (e.keyCode == 13 ){
  3.                         var inputs = $(this).parents("body").eq(0).find('input,select').not('#usermsg').not('input[type=hidden]');
  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.         });
el problema que tengo es que cuando llego a un select la consola me da este error
Uncaught TypeError: Object #<HTMLSelectElement> has no method 'select'
y la verdad no tengo ni idea que puede ser
Saludos y muchas gracias por cualquier ayuda que me puedan brindar