Ver Mensaje Individual
  #9 (permalink)  
Antiguo 14/04/2011, 00:56
Blashak
 
Fecha de Ingreso: noviembre-2007
Mensajes: 471
Antigüedad: 16 años, 5 meses
Puntos: 2
Respuesta: hover option select

Cita:
Iniciado por doylelives Ver Mensaje
Está correctamente incluido el jquery? Pon este code luego de haber incluido la libreria del jquery.
Código Javascript:
Ver original
  1. $(document).ready(function(){
  2.    alert("Jquery funcion");
  3. });
si que me hace el alert("Jquery funcion"). No entiendo lo tengo igual y no me funciona. copie nuevamente el codigo por si se escapa algo.

Código Javascript:
Ver original
  1. <html>
  2. <head>
  3.         <title>Ejemplo</title>
  4.         <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
  5.  
  6.  
  7.  
  8. </head>
  9. <body>
  10.  
  11. <script type="text/javascript">
  12. alert("s");
  13.  
  14. $( function(){
  15. $(document).ready(function(){   alert("Jquery funcion");});
  16. $('#select option').hover( function(){
  17.         alert("asd");
  18.     });
  19.  
  20. });
  21.  
  22.  
  23. </script>
  24.  
  25. <select id="select">
  26.   <option>uno</option>
  27.   <option>dos</option>
  28.   <option>tres</option>
  29.   <option>cuatro</option>
  30. </select>
  31.  
  32.  
  33. </body>
  34. </html>

Saludos y gracias