[jQuery] IDs are a crutch for the weak. Classes are for the strong.

[jQuery] IDs are a crutch for the weak. Classes are for the strong.

Don't get me wrong, I use an occasional id. But ids are over used.
Sure jQuery selects a single element faster with an id than with a
class, but that's only the beginning of a good chain of jquery!
With a properly formatted html/xml, you can deal with the ancestors,
children, siblings, prev, next, and filter. That's why xml, xsl,
xquery, xpath, and jQuery are cool technologies (in my mind) and text
files and last millennium javascript programs are not.
The reason I'm posting this is I made a reference to this motto, that
might be misunderstood.
"IDs are a crutch for the weak. Classes are for the strong."
Jake
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/