View Full Version : Accesing classes by their name?
03-20-2004, 11:59 AM
as the the subject says can it be done?
03-20-2004, 02:25 PM
try using className
03-20-2004, 03:14 PM
className don't access the class at all it access and elements class attribute nothing more nothing less
03-20-2004, 03:21 PM
Garadon: There's no easy way. Have a look at: <http://codingforums.com/showthread.php?s=&threadid=26742>
03-20-2004, 03:51 PM
that thread is about getting elements by their class name. I wanted to access a class by it name:
example pseudo code:
03-20-2004, 03:59 PM
Oh, DOM2CSS then. Note that this area is quirky. Ie use a proprietary model, inoperable with DOM2CSS. Saf and konq has a not-entirely-working model, op7 doesn't at all support it, but moz has pretty good DOM2CSS support.
Have a look at <http://www.quirksmode.org/> for support tables.
In short, it's easier to change the style property of each element belong ing to the class, or at least better supported.
03-20-2004, 05:03 PM
This thread has the basics of DOM 2 CSS http://www.codingforums.com/showthread.php?s=&threadid=14259
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.