Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/03/2010, 14:05
Avatar de mayid
mayid
Colaborador
 
Fecha de Ingreso: marzo-2009
Ubicación: BsAs
Mensajes: 4.014
Antigüedad: 15 años, 1 mes
Puntos: 101
Respuesta: Superduda en selector simple

Aca está la respuesta :)

http://stackoverflow.com/questions/3...r-and-children

Las posibilidades para este html:
<div id="..."><img src="http://www.forosdelweb.com/f127/superduda-selector-simple-789597/..."></div>

...son:
jQuery("img", this); // se convierte internamente en: jQuery(this).find("img")
jQuery(this).find("img")
jQuery(this).children("img")
$($(this).children()[0]) // también funcionaría, pero es horrible

Que bueno que lo plantearas!