[jQuery] List items
[jQuery] List items
Hi,
I have a number of elements in a list (e.g. list = $(".myClass")). Now
I want to access each item of the list randomly. I found two methods
eq() and get(). eq() doesn't seem to select a single node in the list,
and get() doesn't return jQuery object.
For example I couldn't show() a node using (where num is the random item):
list.eq(num).show().
I could just do it trough:
$(list.eq(num).get()).show()
Is there any shortcut?
Thanks.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/