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”

  1. spacer goetsu Says:
    September 4th, 2006 at 5:27 pm

    just 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”

  2. spacer Jeff L Says:
    September 18th, 2006 at 6:15 pm

    Chris, is this much improved from the cssjs function I’ve seen in your code?

  3. spacer 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

  • Home
  • About this
  • Archives
  • My Books
  • Presentations
  • Talks and Conference Participation
  • Want me to talk?
  • Articles
  • Photos
  • Bookmarks
  • Reading
  • Twitter
spacer
My useful twitter updates
Wait till I come! is the blog of Christian Heilmann onlinetoolsorg@gmail.com, a developer evangelist living and working in London, England. Download vcard.

Feed me, Seymour: Entries (RSS) and Comments (RSS).

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.