May already be available in the more recent browsers,

but you can also use: http://www.javascriptsource.com/snippets/getelementsbyclass.html
or: http://www.dustindiaz.com/getelementsbyclass/
or:...