Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/09/2011, 11:57
Avatar de Naahuel
Naahuel
 
Fecha de Ingreso: marzo-2011
Ubicación: localhost
Mensajes: 796
Antigüedad: 13 años, 1 mes
Puntos: 192
Respuesta: Consulta (fácil de responder)

No estoy seguro de entender... :S ¿"cuando hagan enfoque"? ¿Qué es .anterior? ¿La clase de los <li>?

¿Algo así?
Código Javascript:
Ver original
  1. $(document).ready(function() {
  2.     $("li").click(function(event) {
  3.         var valor = $(this).text();
  4.         $("#ajax_mapa").load('/ajax/ver.php?linea=' + valor);
  5.     });
  6. });

Por supuesto que reemplazando el selector por uno más apropiado.
__________________
nahueljose.com.ar