Is there some documentation regarding the order of returned HTML elements by a jquery selector. So for example if I do
$('div.experience_entries_list input.experience_order_array').each(function()
{
alert(this.value);
});
, can I assume that the returned elements will come in the order that they are positioned in the html? I’ve checked this and it seems to be so but I want to be 100% sure before releasing the code built with this assumption 🙂
Yes, as of jQuery 1.3.2 elements are returned in document order.
From the release notes: