var $slideObj = $('#slideshow .slideItem'); var num = 10; I got that code and I want to find the nth-child of the "$slideObj" element. The code below works but I want to use the variable instead of finding the element again.
var $currentSlideObj = $('#slideshow .slideItem:nth-child(' + num + ')'); What I want is the following, $slideObj.nth-child(num); I have tried the following below.
$slideObj.find(':nth-child('+num+')'); $slideObj.eq(num);