Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/09/2014, 12:05
icm9
 
Fecha de Ingreso: septiembre-2014
Mensajes: 66
Antigüedad: 9 años, 7 meses
Puntos: 1
$target=$('.clase:nth-child(4)') ?

quiero seleccionar el 4to hijo de un elemento clase 'clase'. no lo selecciona :S
intente con #id pero tampoco

intentè tambien asi
var $target = $('ol:nth-child(4)');
porque lo que tengo q seleccionar es el 4to <li> de un <ol>

<ol class="clase">
<li>Start with the function keyword</li>
<li>Inputs go between ()</li>
<li>Actions go between {}</li>
<li>jQuery is for chumps!</li>
</ol>

ayuda?