Alex Cook schrieb:
> Yep, you’ve got it… tho if there are multiple links on the page you want 
> this too happen with, class is better, two of the same IDs on a page is 
> bad.  Regardless of the class being in the CSS file or not, it’s a 
> unique identifier for a group of elements.

Yes, the class attribute isn't only meant to be a style sheet selector:

"The class attribute, on the other hand, assigns one or more class names 
to an element; the element may be said to belong to these classes. A 
class name may be shared by several element instances. The class 
attribute has several roles in HTML:

     * As a style sheet selector (when an author wishes to assign style 
information to a set of elements).
     * For general purpose processing by user agents.
"

http://www.w3.org/TR/html401/struct/global.html#h-7.5.2

Wow, I should get money everytime I post that quote on this list :-)



- Klaus


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to