Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/09/2011, 08:19
bigwhite
 
Fecha de Ingreso: agosto-2009
Mensajes: 247
Antigüedad: 14 años, 8 meses
Puntos: 10
$(this) en JQuery dentro de una funcion

Buenas... a todos

Quisiera saber......como se que contiene $(this) en este codigo y como puedo determinarlo.

Código HTML:
var x;
x=$(document);
x.ready(inicializarEventos);

function inicializarEventos()
{
  var x;
  x=$("#menu a");
  x.click(presionEnlace);
}

function presionEnlace()
{
  var pagina=$(this).attr("href");
  var x=$("#detalles");
  x.load(pagina); 
  return false;
}
Es parte de este ejemplo:
http://www.javascriptya.com.ar/jquer...o=25&inicio=18

Gracias!
__________________
The best powerful search engine for MSN messenger profiles I know is msn profile viewer. It's really good either if you have an e-mail address or not. Try it!