On Wed, Jan 13, 2010 at 2:03 AM, Dean <deanpe...@gmail.com> wrote:
> Any jQuery object currently has numerical properties/indexes that
> store references to the DOM node elements matched in the search.
> (E.g., $("div")[0] is a reference to the first matched DOM node
> element in the search.) Can we rely on these properties remaining in
> jQuery indefinitely?

Every time $("div") is executed, it queries the DOM. If you want to
save the results, save them: var divs = $("div"). Then, access them in
the documented way: divs.eq(0). If brackets work now, as they are not
mentioned in the documentation then, no, you can't count on that
working in the future.

Nathan

Reply via email to