> Can you explain why processing elements in semantic order is important?

Two reasons:

$("input | select").eq(0)

This should access the first matched element of input or select - when
the order isn't important, you'll never know which element will
actually be first. It's important that the element is actually the
first element in the document.

Secondly, when serializing forms, the order of the elements that comes
back is frequently important - having a different order can cause
problems for certain applications.

--John

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to