Drew made me do it: Cover all your CSS class tasks with one small JavaScript
Drew McLellan asked for a tool script for an upcoming project that would allow him to do all kind of tasks related to CSS classes.
He wanted to dynamically add, remove and check for classes and get all elements that have a certain class applied to them.
It is nothing fancy or new, but come in handy for you, too: Check the CSS class scanner tool
This entry was posted on Monday, August 21st, 2006 at 10:30 pm and is filed under Common Issues, Experiments, General. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
3 Responses to “Drew made me do it: Cover all your CSS class tasks with one small JavaScript”
-
goetsu Says:
September 4th, 2006 at 5:27 pmjust one question : when i a add too class with the script on the same element xxx then yyy for exemple. The result will be class=”xxx yyy” or class=”yyy”
-
Jeff L Says:
September 18th, 2006 at 6:15 pmChris, is this much improved from the cssjs function I’ve seen in your code?
-
Chris Heilmann Says:
September 20th, 2006 at 11:42 am@goetsu xxx yyy of course, that is what it is for.
@jeff well, not much difference, except for the getElements method and the functionality being in several methods rather than one to rule them all.
Leave a Reply