Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/08/2010, 05:00
Dany_s
 
Fecha de Ingreso: diciembre-2009
Ubicación: Misiones
Mensajes: 867
Antigüedad: 14 años, 5 meses
Puntos: 65
Respuesta: Problema con propagación de eventos en jquery

no es esto?


Código HTML:
Ver original
  1. <title>Prueba</title>
  2. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  3.    
  4. $(function (){
  5.     $("input[type='button']").keydown(function(e){
  6.         if(e.which==13){
  7.             $("a").focus();
  8.             return false;
  9.         }
  10.     });
  11. })
  12. </head>
  13.     <form action="aaa.aaa" method="get">
  14.         <input type="button" value="asd">
  15.     </form>
  16.     <a href="ddd.ddd">asd</a>
  17. </body>
  18. </html>