hi Matthew,
there are a few ways to do this. Let's say, for example, you're
trying to get the 4th div with class="myclass":
$('div.myclass:eq(3)')
$('div.myclass:nth(3)')
$('div.myclass').eq(3)
All of those would do it.
Cheers,
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 14, 2007, at 9:58 PM, Matthew Delmarter wrote:
Hi all,
I am trying to get to the nth item in an array of results - while
still
being able to use jQuery on the object.
I am quite familiar with using get(n) - which returns the DOM
object. I want
the equivalent for jQuery.
Any tips much appreciated - getting lost in the docs here and I am
sure
there must be an easy way to do this?
Does this all make sense?
___________________________________________
Matthew Delmarter
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/